lib/glyph.data
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
Glyph['document.intro'] = RedCloth.new("#{@item[:intro]}\n\n#{@item[:extended_intro]}").to_html Glyph['document.date'] = @item[:date].strftime "%A, %d %B %Y" Glyph['document.title'] = @item[:title] Glyph['document.subtitle'] = @item[:subtitle] Glyph['document.author'] = "Fabio Cevasco" Glyph['output.pdf.generator'] = "prince" Glyph.rewrite "h3rald.article", %{article[ @pubdate[$[document.date]] @head[ style[default.css] style[pagination.css] <style> h1 { font-size: 24px; margin: 0.5em auto; padding: 0.5em auto; } .contents { text-align:justify; margin-bottom: 2em; padding-bottom: 2em; border-bottom: 1px solid #000; } </style> ] @pre-title[ =>[http://www.h3rald.com/archives/|image[@width[25%]@height[25%]$[site.root]/images/theme/h3rald.svg]] ] @post-title[ div[em[Originally published on =>[http://www.h3rald.com{{identifier}}|H3RALD.com]]] toc[] ] {{content}} ] ]} |