]> pd.if.org Git - bluefin/blob - templates/article.tmpl
initial commit
[bluefin] / templates / article.tmpl
1 <html>
2 <head>
3 <link REL="StyleSheet" HREF="[% url %]/../style.css" TYPE="text/css" MEDIA="screen">
4 <title>[% title %]</title>
5 </head>
6
7 <body>
8 <h1 class="blogtitle"><a href="/~nw/blog/">[% blogtitle %]</a></h1>
9
10 [% FOREACH post IN posts %]
11 <h2 class="articletitle"><a href="[% post.url %]" class="title">[% post.title %]</a></h2>
12 <p class="date">[% post.date %]</p>
13
14 [% post.content %]
15
16 <p>Posted in
17 [% FOREACH cat IN post.categories %]
18 / <a href="[% cat.url %]">[% cat.name %]</a>
19 [% END %]
20 </p>
21
22 [% IF post.comments && post.comments.length > 0 -%]
23 <div id="#comments">
24 [% post.comments.length %] comments.
25 </div>
26 [%- END -%]
27 <h3>Comment on this post.</h3>
28 [% PROCESS commentform.tmpl %]
29 <hr>
30 [% END %]
31
32 </body>
33 </html>