Flexible Lisp Blogware. Fork for personal use. Mirrored from https://github.com/kingcons/coleslaw originally.

index.tmpl 1.0KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. {namespace coleslaw.theme.hyde}
  2. {template index}
  3. {if $taglinks}
  4. <div id="tagsoup">
  5. <p>This blog covers
  6. {foreach $taglink in $taglinks}
  7. <a href="{$taglink.url |noAutoescape}">{$taglink.name}</a>
  8. {if not isLast($taglink)}, {/if}
  9. {/foreach}
  10. </div>
  11. {/if}
  12. {if $monthlinks}
  13. <div id="monthsoup">
  14. <p>View posts from
  15. {foreach $monthlink in $monthlinks}
  16. <a href="{$monthlink.url |noAutoescape}">{$monthlink.name}</a>
  17. {if not isLast($monthlink)}, {/if}
  18. {/foreach}
  19. </div>
  20. {/if}
  21. <h1>{$title}</h1>
  22. {foreach $post in $posts}
  23. <div class="article-meta">
  24. <a class="article-title" href="{$post.url}">{$post.title}</a>
  25. <div class="date"> posted on {$post.date}</div>
  26. <div class="article">{$post.contents |noAutoescape}</div>
  27. {if $count}
  28. <div class="comment-count">
  29. <a href="{$post.url}">{$post.comments} comments</a>
  30. </div>
  31. {/if}
  32. </div>
  33. {/foreach}
  34. <div id="relative-nav">
  35. {if $prev} <a href="{$prev}">Previous</a> {/if}
  36. {if $next} <a href="{$next}">Next</a> {/if}
  37. </div>
  38. {/template}