X-Git-Url: https://git.draconx.ca/gitweb/homepage.git/blobdiff_plain/1dc021529f88ca4f1ebfed76ffe6378272a23032..da4a13ce4868f32787813c76898cc9b39dec1bcc:/Rules diff --git a/Rules b/Rules index 477d46d..06f3a11 100644 --- a/Rules +++ b/Rules @@ -21,14 +21,12 @@ preprocess do stdin.close val = stdout.gets stdout.close - if result.value.success? then commit = val.chomp end + commit = val.chomp if result.value.success? end if commit then @items.each do |item| - if item_source(item) then - item[:gitrev] = commit - end + item[:gitrev] = commit if item_source(item) end end end @@ -41,6 +39,23 @@ compile '/**/*.md' do write to_xhtml end +compile '/license/cc*.sgml' do + filter :sgml2xml + layout '/creativecommons.xsl' + layout '/default.xml' + layout '/default.xsl' + filter :relativize_paths, type: :xml + write to_xhtml +end + +compile '/license/cc*.xhtml' do + layout '/creativecommons.xsl' + layout '/default.xml' + layout '/default.xsl' + filter :relativize_paths, type: :xml + write to_xhtml +end + passthrough '/**/*' layout '/**/*.xsl', :xsl layout '/**/*', :erb