PageRenderTime 4ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/hyde/layouts/basic/layout/blog.j2

http://github.com/hyde/hyde
Jinja | 65 lines | 60 code | 5 blank | 0 comment | 6 complexity | 45f43e3f6952415ec80d1625f0cbaa8d MD5 | raw file
 1{% extends "base.j2" %}
 2
 3{% block main -%}
 4<article class="post">
 5<nav class="post_nav">
 6<a class="backlink" href="{{ content_url(resource.node.url) }}">Back to list</a>
 7<a class="prev{{' disabled' if not resource.prev_by_time }}"
 8    title="{{ resource.prev_by_time.meta.title }}"
 9    {% if resource.prev_by_time %}
10    href="{{ content_url(resource.prev_by_time.url) }}"{% endif %}>
11    Previous
12</a>
13
14<a class="next{{' disabled' if not resource.next_by_time }}"
15    title="{{ resource.next_by_time.meta.title }}"
16    {% if resource.next_by_time %}
17    href="{{ content_url(resource.next_by_time.url) }}"{% endif %}>
18    Next
19</a>
20
21<br>
22<div id="twitter_share">
23<a href="http://twitter.com/share"
24    class="twitter-share-button"
25    data-count="vertical"
26    data-via="{{ tweet_via }}">Tweet</a>
27    <script type="text/javascript"
28        src="http://platform.twitter.com/widgets.js"></script>
29</div>
30<div id="facebook_like">
31<iframe src="http://www.facebook.com/plugins/like.php?href&amp;layout=box_count&amp;show_faces=false&amp;width=450&amp;action=like&amp;font=arial&amp;colorscheme=light&amp;height=65"
32            scrolling="no"
33            frameborder="0"
34            style="border:none; overflow:hidden; width:450px; height:65px;"
35            allowTransparency="true"></iframe>
36</div>
37</nav>
38<h1 class="title">
39    <a href="{{ content_url(resource.url) }}">
40        {{ resource.meta.title }}
41    </a>
42</h1>
43<time datetime="{{ resource.meta.created.strftime('%Y-%m-%d') }}">
44    Posted: {{ resource.meta.created.strftime('%a, %d %b %Y') }}
45</time>
46
47{% if resource.meta.tags %}
48<ul class="tags clear">
49{% for tag in resource.meta.tags %}
50<li>
51    <a class="small" href="{{ content_url('blog/tags/'~tag~'.html') }}">
52        {{ tag }}
53    </a>
54</li>
55{% endfor %}
56</ul>
57{% endif %}
58{% filter markdown|typogrify -%}
59{% mark post -%}
60{% block post -%}{%- endblock %}
61{%- endmark %}
62{%- endfilter %}
63</article>
64
65{%- endblock %}