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 'pygments.rb'
|
||||||
|
|
||||||
|
gem 'builder'
|
||||||
|
|
||||||
gem 'sass'
|
gem 'sass'
|
||||||
gem 'compass'
|
gem 'compass'
|
||||||
|
|
||||||
gem 'typogruby'
|
gem 'typogruby'
|
||||||
gem 'nanoc-cachebuster'
|
gem 'nanoc-cachebuster'
|
||||||
gem 'nanoc-javascript-concatenator'
|
gem 'nanoc-javascript-concatenator'
|
||||||
gem 'nanoc-code-classifier'
|
|
||||||
|
|
||||||
gem 'uglifier'
|
gem 'uglifier'
|
||||||
gem 'multi_json', '~> 1.3' # needed by uglifier
|
gem 'multi_json', '~> 1.3' # needed by uglifier
|
||||||
|
|
|
@ -3,6 +3,7 @@ GEM
|
||||||
specs:
|
specs:
|
||||||
adsf (1.1.1)
|
adsf (1.1.1)
|
||||||
rack (>= 1.0.0)
|
rack (>= 1.0.0)
|
||||||
|
builder (3.2.0)
|
||||||
chunky_png (1.2.7)
|
chunky_png (1.2.7)
|
||||||
colored (1.2)
|
colored (1.2)
|
||||||
compass (0.12.2)
|
compass (0.12.2)
|
||||||
|
@ -25,9 +26,6 @@ GEM
|
||||||
cri (~> 2.3)
|
cri (~> 2.3)
|
||||||
nanoc-cachebuster (0.3.1)
|
nanoc-cachebuster (0.3.1)
|
||||||
nanoc (>= 3.3.0)
|
nanoc (>= 3.3.0)
|
||||||
nanoc-code-classifier (0.1.0)
|
|
||||||
nanoc (~> 3.0)
|
|
||||||
nokogiri (~> 1.0)
|
|
||||||
nanoc-javascript-concatenator (0.0.2)
|
nanoc-javascript-concatenator (0.0.2)
|
||||||
nanoc (>= 3.3.0)
|
nanoc (>= 3.3.0)
|
||||||
nokogiri (1.5.9)
|
nokogiri (1.5.9)
|
||||||
|
@ -56,6 +54,7 @@ PLATFORMS
|
||||||
|
|
||||||
DEPENDENCIES
|
DEPENDENCIES
|
||||||
adsf
|
adsf
|
||||||
|
builder
|
||||||
compass
|
compass
|
||||||
haml
|
haml
|
||||||
i18n
|
i18n
|
||||||
|
@ -64,7 +63,6 @@ DEPENDENCIES
|
||||||
multi_json (~> 1.3)
|
multi_json (~> 1.3)
|
||||||
nanoc
|
nanoc
|
||||||
nanoc-cachebuster
|
nanoc-cachebuster
|
||||||
nanoc-code-classifier
|
|
||||||
nanoc-javascript-concatenator
|
nanoc-javascript-concatenator
|
||||||
nokogiri
|
nokogiri
|
||||||
pygments.rb
|
pygments.rb
|
||||||
|
|
8
Rules
8
Rules
|
@ -22,6 +22,10 @@ compile '/js/*/' do
|
||||||
filter :uglify_js
|
filter :uglify_js
|
||||||
end
|
end
|
||||||
|
|
||||||
|
compile '/rss/' do
|
||||||
|
filter :erb
|
||||||
|
end
|
||||||
|
|
||||||
compile '/posts/*' do
|
compile '/posts/*' do
|
||||||
filter :kramdown
|
filter :kramdown
|
||||||
filter :pygmentizer
|
filter :pygmentizer
|
||||||
|
@ -71,6 +75,10 @@ route '/js/*/' do
|
||||||
item.identifier.chop + fp + '.js'
|
item.identifier.chop + fp + '.js'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
route '/rss/' do
|
||||||
|
'/rss.xml'
|
||||||
|
end
|
||||||
|
|
||||||
route '/posts/*' do
|
route '/posts/*' do
|
||||||
y, m, d, slug = /([0-9]+)\-([0-9]+)\-([0-9]+)\-([^\/]+)/.match(item.identifier).captures
|
y, m, d, slug = /([0-9]+)\-([0-9]+)\-([0-9]+)\-([^\/]+)/.match(item.identifier).captures
|
||||||
"/#{y}/#{m}/#{d}/#{slug}/index.html"
|
"/#{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"}
|
%html{:dir => "ltr", :lang => "en-US"}
|
||||||
/ <![endif]
|
/ <![endif]
|
||||||
%head
|
%head
|
||||||
|
%meta{:charset => 'utf-8'}
|
||||||
%meta{:content => "text/html;charset=utf-8", "http-equiv" => "content-type"}
|
%meta{:content => "text/html;charset=utf-8", "http-equiv" => "content-type"}
|
||||||
%meta{:content => "cmsmasters responsive html5 website template", :name => "description"}
|
%meta{:content => "a blog by ariejan de vroom about software engineering and craftsmanship.", :name => "description"}
|
||||||
%meta{:content => "html5, css3, template, responsive, adaptive", :name => "keywords"}
|
%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 => "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{: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 => "/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"}
|
%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"}
|
%a{:href => "https://twitter.com/ariejan", :title => "Twitter"}
|
||||||
%img{:alt => "Twitter", :src => "/images/socicons/twitter.png"}/
|
%img{:alt => "Twitter", :src => "/images/socicons/twitter.png"}/
|
||||||
%li
|
%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"}/
|
%img{:alt => "RSS Feed", :src => "/images/socicons/rss.png"}/
|
||||||
%li
|
%li
|
||||||
%a{:href => "mailto:ariejan@ariejan.net", :title => "E-mail"}
|
%a{:href => "mailto:ariejan@ariejan.net", :title => "E-mail"}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user