Recently Written · git

coleslaw

Emacs mode for the "Coleslaw" site generator written in Common Lisp.

git clone https://github.com/equwal/coleslaw

Log | Files | Refs


themes/readable/index.tmpl (1052 bytes)

1 {namespace coleslaw.theme.readable}
2 
3 {template index}
4 <h1 class="page-header">{$index.title}</h1>
5 {foreach $obj in $index.content}
6   <div class="row-fluid">
7     <h1><a href="{$config.domain}/{$obj.url}">{$obj.title}</a></h1>
8     <p class="date-posted">posted on {$obj.date}</p>
9     {$obj.excerpt |noAutoescape}
10   </div>
11 {/foreach}
12 <div id="relative-nav">
13   <ul class="pager">
14     {if $prev} <li class="previous"><a href="{$config.domain}/{$prev.url}">Previous</a></li> {/if}
15     {if $next} <li class="next"><a href="{$config.domain}/{$next.url}">Next</a></li> {/if}
16   </ul>
17 </div>
18 {if $tags}
19 <div class="row-fluid">
20   <p>This blog covers
21     {foreach $tag in $tags}
22       <a href="{$config.domain}/{$tag.url}">{$tag.name}</a>{nil}
23       {if not isLast($tag)},{sp}{/if}
24     {/foreach}
25   </p>
26 </div>
27 {/if}
28 {if $months}
29 <div class="row-fluid">
30   <p>View content from
31     {foreach $month in $months}
32       <a href="{$config.domain}/{$month.url}">{$month.name}</a>{nil}
33       {if not isLast($month)},{sp}{/if}
34     {/foreach}
35   </p>
36 </div>
37 {/if}
38 {/template}