view static/tpl/read-page.html @ 99:58a1a7baca25

Added preliminary UI support for categories.
author Ludovic Chabant <ludovic@chabant.com>
date Sun, 21 Apr 2013 08:12:18 -0700
parents b03f083c3a29
children 827e236aa7c6
line wrap: on
line source

<article>
    {{#ifnot meta.notitle}}
    <header>
        <h1>{{meta.title}}</h1>
        {{#if redirected_from}}
        <small>Redirected from <a href="/#/read/{{redirected_from}}?no_redirect">{{redirected_from}}</a></small>
        {{/if}}
        {{#if meta.redirect}}
        <small>Redirects to <a href="/#/read/{{meta.redirect}}">{{meta.redirect}}</a></small>
        {{/if}}
    </header>
    {{/ifnot}}
    <section>
        {{content}}
    </section>
    {{#if meta.category}}
    <footer>
        {{#each meta.category}}
        {{#ifeq @index to=0}}Categories: {{else}} | {{/ifeq}}
        <span><a href="/#/category/{{url}}">{{name}}</a></span>
        {{/each}}
    </footer>
    {{/if}}
</article>