home · contact · privacy
Add modification date element to article template.
[redo-blog] / processor / metadata / article.tmpl.do
1 #!/bin/sh
2
3 if [ ! -f "$1" ]; then
4 cat << EOF
5 <!DOCTYPE html>
6 <html>
7 <head>
8 <meta charset="UTF-8">
9 <style type="text/css">
10 h1 { font-size: 2em; }
11 h2 { font-size: 1.5em; }
12 h3 { font-size: 1.17em; }
13 h4 { font-size: 1.12em; }
14 h5 { font-size: .83em; }
15 h6 { font-size: .75em; }
16 header h1 { margin-bottom: 0.1em; }
17 header p { margin: 0; }
18 </style>
19 <title>%BLOG_TITLE% – %ARTICLE_TITLE_ESCAPED%</title>
20 </head>
21 <body>
22 <a href="index.html">%BLOG_TITLE%</a>
23 <article>
24 <header>
25 <h1>%ARTICLE_TITLE_HTML%</h1>
26 <p>created: <time>%DATE_CREATED%</time> / last update: <time>%DATE_UPDATED%</time></p>
27 </header>
28 %BODY%
29 </article>
30 </body>
31 </html>
32 EOF
33 fi