all repos — h3rald @ 689e9ba46b9841466abaf44cb41dda4a66535750

The sources of https://h3rald.com

Added sitemap
* Closes #38.
h3rald h3rald@h3rald.com
Sun, 06 Sep 2009 12:19:14 +0200
commit

689e9ba46b9841466abaf44cb41dda4a66535750

parent

2537ecb973ab9c77a862237743ad9fefb5c3a74a

4 files changed, 13 insertions(+), 121 deletions(-)

jump to
M RulesRules

@@ -22,6 +22,10 @@ :full_exception => true,

:line_numbers => true } end + +compile 'sitemap' do + rep.filter :erb +end compile '*' do if item[:filters_pre] && !item[:filters_pre].empty? then

@@ -44,6 +48,10 @@ end

route 'css/*' do item.identifier.gsub(/\/$/, '') + '.css' +end + +route 'sitemap' do + item.identifier.gsub(/\/$/, '') + '.xml' end route '*' do
A content/sitemap.xml

@@ -0,0 +1,4 @@

+----- +----- +<%= xml_sitemap %> +
D content/text_1.css

@@ -1,121 +0,0 @@

------ ------ -/* TEXT */ - -body -{ - color: #000; - font: 0.9em Georgia, Serif; -} - -h1 -{ - height: 60px; -} - -h2, h3, h4, h5 -{ - margin: 0; - font-family: 'Book Antiqua', Palatino, serif; - font-variant: small-caps; -} - -h2 -{ - font-size: 2.3em; -} - -h3 -{ - font-size: 1.7em; -} - -h4 -{ - font-size: 1.3em; -} - -.dropcap { - font-family: 'Book Antiqua', Palatino, serif; - float: left; - font-size: 4.2em; - line-height: 0.75em; - margin-top: 0.15em; - padding-right: 0.25em; - text-transform: uppercase; - -} - -h2 + p:first-line { - font-variant:small-caps; -} - -#services h3 -{ - padding-top: 10px; - text-align: center; -} - -#navigation a -{ - font-size: 2em; -} - - -em { - font-style: italic; -} - -#footer, #border-bottom -{ - color: #BDB7BA; -} - -/**** Article Lists ****/ - -.article-list h3, .left-column h3, .right-column h3 -{ - margin-bottom: 1.5em; - text-align: center; -} - -.article-item h4 -{ - margin: 0; - padding: 0; -} - -.article-tags -{ - padding-top: -0.1em; - font-size: 90%; - padding-left: 1em; -} - -.article-summary -{ - padding-top: 0.5em; - padding-left: 1em; - font-style: italic; -} - - - -/******* LINKS *******/ - -a, a.gs-title -{ - text-decoration:none; - outline:none; -} - -a, a.gs-title, .gsc-cursor-page -{ - color: #A4282D; -} - -a:hover, a.gs-title:hover, .gsc-cursor-page:hover -{ - color: #CF282D; -} -
M lib/helpers.rblib/helpers.rb

@@ -180,3 +180,4 @@

include Nanoc3::Helpers::Tagging include Nanoc3::Helpers::Blogging include Nanoc3::Helpers::Rendering +include Nanoc3::Helpers::XMLSitemap