-
Notifications
You must be signed in to change notification settings - Fork 0
/
post.j2
34 lines (31 loc) · 866 Bytes
/
post.j2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{% extends "base.j2" %}
{% block menu %}
<nav>
{{ macros.render_main_menu() }}
</nav>
{% endblock %}
{%- block content -%}
{% mark post -%}
<article class="post">
<header>
<h2>updated {{ resource.meta.created }}</h2>
<h2>updated {{ resource.meta.modified }}</h2>
<h2>{{ resource.meta.title }}</h2>
{% if resource.meta.date %}
<p class="datetime">{{ macros.render_date( resource.meta.date ) }}</p>
{% endif %}
</header>
<section>
{% mark content -%}
{% filter markdown|typogrify -%}
{% block post %}{% endblock %}
{%- endfilter %}
{%- endmark %}
</section>
{% include "assets/render_related_posts.j2" %}
</article>
{% if site.config.mode == "development" %}
{% include media_url('js/disqus.js') %}
{% endif %}
{%- endmark -%}
{% endblock -%}