PageRenderTime 7ms CodeModel.GetById 1ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/hyde/layouts/basic/layout/tagged_posts.j2

http://github.com/hyde/hyde
Jinja | 28 lines | 27 code | 1 blank | 0 comment | 4 complexity | 4e737c93a2cecfd6ab34ac1bac2dd643 MD5 | raw file
 1{% extends "base.j2" %}
 2
 3{% block main %}
 4<section class="archives">
 5<h1 class="tag title">{{ tag.name }}</h1>
 6<ul class="posts clear">
 7{% for resource in walker() -%}
 8<li class="post clear">
 9    <time datetime="{{ resource.meta.created.strftime('%Y-%m-%d') }}">
10        {{ resource.meta.created.strftime('%a, %d %b %Y') }}
11    </time>
12    <a href="{{ content_url(resource.url) }}">{{ resource.meta.title }}</a>
13    {% if resource.meta.tags %}
14    <ul class="tags">
15    {% for tag in resource.meta.tags %}
16    <li>
17        <a class="small" href="{{ content_url('blog/tags/'~tag~'.html') }}">
18            {{ tag }}
19        </a>
20    </li>
21    {% endfor %}
22    </ul>
23    {% endif %}
24</li>
25{%- endfor %}
26</ul>
27</section>
28{% endblock %}