X-Git-Url: https://git.draconx.ca/gitweb/homepage.git/blobdiff_plain/3f707bce834daa1c9c3f5029611090430caa2178..0015d84bea1204b4534e5568ff7c0920b9ef02b7:/Rules diff --git a/Rules b/Rules index ebe9cf2..d3247cb 100644 --- a/Rules +++ b/Rules @@ -132,8 +132,9 @@ compile '/**/index.lst' do layout '/listing.erb' layout '/default.xml' layout '/default.xsl' + layout '/embed-svg.xsl' filter :relativize_paths, type: :xml - filter :xhtml_compat + filter :xhtml_compat, fix_doctype: true write item.identifier.without_ext + ".xhtml" end @@ -209,6 +210,11 @@ compile '/**/*.svg' do write @item.identifier.to_s end +compile '/icons/**/*.svg', rep: :icon32 do + filter :svg2png, width: 32, height: 32 + write @item.identifier.without_ext + "-32.png" +end + compile '/**/*' do filter :copybin if @item.binary? write @item.identifier.to_s