3 <link REL="StyleSheet" HREF="[% url %]/../style.css" TYPE="text/css" MEDIA="screen">
4 <title>[% title %]</title>
9 <h1 class="blogtitle"><a href="/~nw/blog/">[% blogtitle %]</a></h1>
13 [% PROCESS sidebar.tmpl %]
16 <div class="posts" id="posts">
17 [% FOREACH post IN posts %]
19 <h2 class="title"><a href="[% post.url %]" class="title">[% post.title %]</a></h2>
20 <p class="date">[% post.date %]</p>
25 [%- FOREACH cat IN post.categories -%]
26 / <a class="category" href="[% cat.url %]">[% cat.name %]</a>
30 [% IF post.comments %]
31 <a href="[% post.url %]#comments">[% post.comments.size %] comment[% IF post.comments.size != 1 %]s[% END %]</a>.
34 [% IF posts.size == 1 && post.comments && post.comments.size > 0 -%]
36 <h3 id="comments">Comments</h3>
38 [% FOREACH c IN post.comments %]
39 <h4>[% c.meta.Name %]</h4>
45 [% IF posts.size == 1 -%]
46 <h3>Comment on this post.</h3>
47 [% PROCESS commentform.tmpl %]