diff options
Diffstat (limited to 'themes/oni/post.tmpl')
-rw-r--r-- | themes/oni/post.tmpl | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/themes/oni/post.tmpl b/themes/oni/post.tmpl new file mode 100644 index 0000000..02a16e6 --- /dev/null +++ b/themes/oni/post.tmpl @@ -0,0 +1,38 @@ +{namespace coleslaw.theme.oni} + +{template post} + <article> + <header> + {if $post.tags} + <ul class="tags"> + {foreach $tag in $post.tags} + <li><a href="{$config.domain}/{$tag.url}">{$tag.name}</a></li> + {/foreach} + </ul> + {/if} + <h1>{$post.title}</h1> + {if $post.date} + <small>Published on: <time>{$post.date}</time></small> + {/if} + </header> + <div class="article-content"> + {$post.text|noAutoescape} + </div> + </article> + + <nav id="page-navigation"> + <ul> + {if $prev} + <li class="prev"> + <a href="{$config.domain}/{$prev.url}">Previous</a> + </li> + {/if} + {if $next} + <li class="next"> + <a href="{$config.domain}/{$next.url}">Next</a> + </li> + {/if} + </ul> + <div class="clear"></div> + </nav> +{/template} |