X-Git-Url: http://git.draconx.ca/gitweb/homepage.git/blobdiff_plain/f2f70556922d006af212d3cd977450e8d140ee84..ec1703ff7346b6d3edeee73f1c6dfa750b7aeed4:/Rules diff --git a/Rules b/Rules index f3f1f0a..a881607 100644 --- a/Rules +++ b/Rules @@ -36,6 +36,17 @@ preprocess do item[:gitrev] = commit if item_source(item) end end + + @items.find_all('/weblog/*.md').each do |item| + item[:kind] ||= 'article' + end + + @items.each do |item| + item[:created_at] ||= + item[:published] || File.stat(item.raw_filename).mtime + item[:updated_at] ||= + item[:updated] || File.stat(item.raw_filename).mtime + end end postprocess do @@ -165,8 +176,8 @@ compile '/**/*.scss' do end compile '/**/*' do - filter :copybin if @item.binary? - write @item.identifier.to_s + filter :copybin if @item.binary? + write @item.identifier.to_s end layout '/**/*.xsl', :xsl