zola-inky-fork/templates/post.html

34 lines
939 B
HTML
Raw Normal View History

2023-02-01 17:58:59 +00:00
2023-02-01 18:29:21 +00:00
{% extends "base.html" %}
{% block content %}
2023-02-01 17:58:59 +00:00
2023-02-01 18:29:21 +00:00
<section class="post">
<div class="post-header">
<div class="meta">
<div class="date">
<span class="day">{{ page.date | date(format='%d')}}</span>
<span class="rest">{{ page.date | date(format='%b %y')}}</span>
2023-02-01 17:58:59 +00:00
</div>
</div>
2023-02-01 18:29:21 +00:00
<div class="matter">
<h1 class="title">{{ page.title }} {% if page.draft %}<span class="draft">Draft</span>{% endif %}</h1>
</div>
</div>
2023-02-12 19:09:36 +00:00
{{ hooks::post_above_content(page=page) }}
2023-02-01 18:29:21 +00:00
<article>{{ page.content | safe }}</article>
2023-02-12 19:09:36 +00:00
{{ hooks::post_below_content(page=page) }}
2023-02-01 18:29:21 +00:00
{% if page.taxonomies is containing ("tags") %}
<ul class="tags">
{% for tag in page.taxonomies["tags"] %}
2023-02-01 19:02:27 +00:00
<li><a href='{{ config.base_url | safe }}/tags/{{ tag | slugify }}'>{{ tag }}</a></li>
2023-02-01 18:29:21 +00:00
{% endfor %}
</ul>
{% endif %}
2023-02-12 19:09:36 +00:00
{{ hooks::post_below_tags(page=page) }}
2023-02-01 18:29:21 +00:00
</section>
{% endblock content %}