coleslaw/themes/readable/index.tmpl
Brit Butler 3ee8f43325 Remove dead code in PAGE-URL.
We partially support 'pretty URLs'. They can be achieved by setting
:page-ext in the *config* to "/" and configuring the web server to
ignore html extensions.
2014-04-08 16:59:56 -04:00

32 lines
859 B
Cheetah

{namespace coleslaw.theme.readable}
{template index}
<h1 class="page-header">{$index.title}</h1>
{foreach $post in $index.posts}
<div class="row-fluid">
<h1><a href="{$config.domain}/posts/{$post.slug}{$config.pageExt}">{$post.title}</a></h1>
<p class="date-posted">posted on {$post.date}</p>
{$post.text |noAutoescape}
</div>
{/foreach}
{if $tags}
<div class="row-fluid">
<p>This blog covers
{foreach $tag in $tags}
<a href="{$config.domain}/tag/{$tag.slug}{$config.pageExt}">{$tag.name}</a>{nil}
{if not isLast($tag)},{sp}{/if}
{/foreach}
</p>
</div>
{/if}
{if $months}
<div class="row-fluid">
<p>View posts from
{foreach $month in $months}
<a href="{$config.domain}/date/{$month}{$config.pageExt}">{$month}</a>{nil}
{if not isLast($month)},{sp}{/if}
{/foreach}
</p>
</div>
{/if}
{/template}