Add RSS feed
This commit is contained in:
parent
c0ed065400
commit
2a97b5ef59
3
Gemfile
3
Gemfile
|
@ -7,13 +7,14 @@ gem 'kramdown'
|
|||
|
||||
gem 'pygments.rb'
|
||||
|
||||
gem 'builder'
|
||||
|
||||
gem 'sass'
|
||||
gem 'compass'
|
||||
|
||||
gem 'typogruby'
|
||||
gem 'nanoc-cachebuster'
|
||||
gem 'nanoc-javascript-concatenator'
|
||||
gem 'nanoc-code-classifier'
|
||||
|
||||
gem 'uglifier'
|
||||
gem 'multi_json', '~> 1.3' # needed by uglifier
|
||||
|
|
|
@ -3,6 +3,7 @@ GEM
|
|||
specs:
|
||||
adsf (1.1.1)
|
||||
rack (>= 1.0.0)
|
||||
builder (3.2.0)
|
||||
chunky_png (1.2.7)
|
||||
colored (1.2)
|
||||
compass (0.12.2)
|
||||
|
@ -25,9 +26,6 @@ GEM
|
|||
cri (~> 2.3)
|
||||
nanoc-cachebuster (0.3.1)
|
||||
nanoc (>= 3.3.0)
|
||||
nanoc-code-classifier (0.1.0)
|
||||
nanoc (~> 3.0)
|
||||
nokogiri (~> 1.0)
|
||||
nanoc-javascript-concatenator (0.0.2)
|
||||
nanoc (>= 3.3.0)
|
||||
nokogiri (1.5.9)
|
||||
|
@ -56,6 +54,7 @@ PLATFORMS
|
|||
|
||||
DEPENDENCIES
|
||||
adsf
|
||||
builder
|
||||
compass
|
||||
haml
|
||||
i18n
|
||||
|
@ -64,7 +63,6 @@ DEPENDENCIES
|
|||
multi_json (~> 1.3)
|
||||
nanoc
|
||||
nanoc-cachebuster
|
||||
nanoc-code-classifier
|
||||
nanoc-javascript-concatenator
|
||||
nokogiri
|
||||
pygments.rb
|
||||
|
|
8
Rules
8
Rules
|
@ -22,6 +22,10 @@ compile '/js/*/' do
|
|||
filter :uglify_js
|
||||
end
|
||||
|
||||
compile '/rss/' do
|
||||
filter :erb
|
||||
end
|
||||
|
||||
compile '/posts/*' do
|
||||
filter :kramdown
|
||||
filter :pygmentizer
|
||||
|
@ -71,6 +75,10 @@ route '/js/*/' do
|
|||
item.identifier.chop + fp + '.js'
|
||||
end
|
||||
|
||||
route '/rss/' do
|
||||
'/rss.xml'
|
||||
end
|
||||
|
||||
route '/posts/*' do
|
||||
y, m, d, slug = /([0-9]+)\-([0-9]+)\-([0-9]+)\-([^\/]+)/.match(item.identifier).captures
|
||||
"/#{y}/#{m}/#{d}/#{slug}/index.html"
|
||||
|
|
1
content/rss.erb
Normal file
1
content/rss.erb
Normal file
|
@ -0,0 +1 @@
|
|||
<%= atom_feed title: 'ariejan.net', author_name: 'Ariejan de Vroom', author_uri: 'http://ariejan.net', limit: 10 %>
|
|
@ -6,13 +6,18 @@
|
|||
%html{:dir => "ltr", :lang => "en-US"}
|
||||
/ <![endif]
|
||||
%head
|
||||
%meta{:charset => 'utf-8'}
|
||||
%meta{:content => "text/html;charset=utf-8", "http-equiv" => "content-type"}
|
||||
%meta{:content => "cmsmasters responsive html5 website template", :name => "description"}
|
||||
%meta{:content => "html5, css3, template, responsive, adaptive", :name => "keywords"}
|
||||
%meta{:content => "a blog by ariejan de vroom about software engineering and craftsmanship.", :name => "description"}
|
||||
%meta{:content => "software engineering, programming, craftsmanship, devops, ruby, rubyonrails, rails, git, svn, postgres, postgresql, mysql, mac, ios, apple, web2.0, go, golang", :name => "keywords"}
|
||||
%meta{:content => "width=device-width, initial-scale=1, maximum-scale=1", :name => "viewport"}
|
||||
%meta{:content => "3bgidck6YUMyx-kvL_a8E4ry0DJOAIOYaZkZxQ0kZw4", :name => "google-site-verification"}
|
||||
|
||||
%link(href='http://www.myopenid.com/server' rel='openid.server')
|
||||
%link(href='http://ariejan.myopenid.com/' rel='openid.delegate')
|
||||
|
||||
%link{:href => "/images/favicon.ico", :rel => "shortcut icon", :type => "image/x-icon"}
|
||||
|
||||
%link{:rel => "alternate", :type => "application/rss+xml", :title => "RSS", :href => "http://ariejan.net/rss.xml"}
|
||||
%link{:href => "/css/style.css", :media => "screen", :rel => "stylesheet", :type => "text/css"}
|
||||
|
||||
%link{:href => "http://fonts.googleapis.com/css?family=Open+Sans:400,600,800,400italic", :rel => "stylesheet", :type => "text/css"}
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
%a{:href => "https://twitter.com/ariejan", :title => "Twitter"}
|
||||
%img{:alt => "Twitter", :src => "/images/socicons/twitter.png"}/
|
||||
%li
|
||||
%a{:href => "http://feeds.feedburner.com/Ariejan", :title => "RSS Feed"}
|
||||
%a{:href => "http://ariejan.net/rss.xml", :title => "RSS Feed"}
|
||||
%img{:alt => "RSS Feed", :src => "/images/socicons/rss.png"}/
|
||||
%li
|
||||
%a{:href => "mailto:ariejan@ariejan.net", :title => "E-mail"}
|
||||
|
|
Loading…
Reference in New Issue
Block a user