
Note that tagless or dateless posts might not behave as expected in indexes. Filtering by tag still works but sorting by date doesn't drop the nil values.
27 lines
788 B
Cheetah
27 lines
788 B
Cheetah
{namespace coleslaw.theme.readable}
|
|
|
|
{template post}
|
|
<div class="row-fluid">{\n}
|
|
<h1 class="page-header">{$post.title}</h1>{\n}
|
|
<p>
|
|
{if $post.tags}
|
|
Tagged as {foreach $tag in $post.tags}
|
|
<a href="../tag/{$tag.slug}{$config.pageExt}">{$tag.name}</a>{nil}
|
|
{if not isLast($tag)},{sp}{/if}
|
|
{/foreach}
|
|
{/if}
|
|
</p>
|
|
<p class="date-posted">
|
|
{if $post.date}
|
|
Written on {$post.date}
|
|
{/if}
|
|
</p>
|
|
|
|
{$post.text |noAutoescape}
|
|
|
|
<ul class="pager">
|
|
{if $prev}<li class="previous"><a href="{$config.domain}/posts/{$prev.slug}.{$config.pageExt}">← Previous</a></li>{/if}{\n}
|
|
{if $next}<li class="next"><a href="{$config.domain}/posts/{$next.slug}.{$config.pageExt}">Next →</a></li>{/if}{\n}
|
|
</ul>
|
|
</div>{\n}
|
|
{/template}
|