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

index.tmpl 862B

123456789101112131415161718192021222324252627282930313233
  1. {namespace coleslaw.theme.readable}
  2. {template index}
  3. <h1 class="page-header">{$index.title}</h1>
  4. {foreach $post in $index.posts}
  5. <div class="row-fluid">
  6. <h1><a href="{$config.domain}/posts/{$post.slug}.{$config.pageExt}">{$post.title}</a></h1>
  7. <p class="date-posted">posted on {$post.date}</p>
  8. {$post.text |noAutoescape}
  9. </div>
  10. {/foreach}
  11. {if $tags}
  12. <div class="row-fluid">
  13. <p>This blog covers
  14. {foreach $tag in $tags}
  15. <a href="{$config.domain}/tag/{$tag.slug}.{$config.pageExt}">{$tag.name}</a>{nil}
  16. {if not isLast($tag)},{sp}{/if}
  17. {/foreach}
  18. </p>
  19. </div>
  20. {/if}
  21. {if $months}
  22. <div class="row-fluid">
  23. <p>View posts from
  24. {foreach $month in $months}
  25. <a href="{$config.domain}/date/{$month}.{$config.pageExt}">{$month}</a>{nil}
  26. {if not isLast($month)},{sp}{/if}
  27. {/foreach}
  28. </p>
  29. </div>
  30. {/if}
  31. {/template}