1
0
Fork 0
website/templates/post.html
2023-04-03 23:33:25 +02:00

24 lines
820 B
HTML

{% extends "base.html" %}
{% block main -%}
<article>
{% if page.title -%}
<h1>{{ page.title }}</h1>
{% endif -%}
{% if page.date -%}
<small>Posted on <time datetime="{{ page.date }}">{{ page.date | date(format="%Y-%m-%d %H:%M") }}</time>
{%- if page.updated -%}
, Updated <time datetime="{{ page.updated }}">{{ page.updated | date(format="%Y-%m-%d %H:%M") }}</time>
{%- endif -%}
</small>
{%- endif %}
{{ page.content | safe -}}
{% if page.tags -%}
<small>
<ul class="tags">
{% for tag in page.tags %}<li><a href="/tags/{{tag}}/">#{{ tag }}</a></li>{% endfor %}
</ul>
</small>
{%- endif %}
</article>
{% endblock main -%}