1. Luke Plant
  2. haskellblog

Commits

Luke Plant  committed 2ebd1a9

Templates forgotten in last commit

  • Participants
  • Parent commits 64de167
  • Branches default

Comments (0)

Files changed (2)

File src/templates/index.st

View file
  • Ignore whitespace
+$pagestart(pagetitle="Recent posts")$
+<h1>Recent posts</h1>
+
+$posts,categories:{ p,cs |
+<div class="summarylink"><a href="$p.url$">$p.title$</a></div>
+$metainfoline(divclass="metainfoindex";post=p;categories=cs)$
+<div class="summary">$p.summary$</div>
+}$
+$paginglinks$
+$pageend()$

File src/templates/metainfoline.st

View file
  • Ignore whitespace
+<div class="$divclass$">
+Posted in:
+       $first(categories):{<a href="$it.url$">$it.name$</a>}$$rest(categories):{, <a href="$it.url$">$it.name$</a>}$
+| $post.date$
+</div>