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