1
0
Fork 0
website/templates/post.html

27 lines
902 B
HTML
Raw Normal View History

2022-08-31 23:20:59 +02:00
{% extends "base.html" %}
2023-03-25 21:38:16 +01:00
{% block main -%}
<article>
{% if page.title -%}
<h1>{{ page.title }}</h1>
{% endif -%}
{% if page.date -%}
2023-07-29 20:22:13 +02:00
<small>
{%- if page.draft %}Draft {% endif -%}
Published <time datetime="{{ page.date }}">{{ page.date | date(format="%F %R%:::z") }}</time>
2023-04-03 23:33:25 +02:00
{%- if page.updated -%}
2023-07-29 20:22:13 +02:00
, Updated <time datetime="{{ page.updated }}">{{ page.updated | date(format="%F %R%:::z") }}</time>
2023-04-03 23:33:25 +02:00
{%- endif -%}
</small>
{%- endif %}
2023-03-25 21:38:16 +01:00
{{ page.content | safe -}}
2023-03-29 21:48:27 +02:00
{% if page.tags -%}
2023-04-03 23:33:25 +02:00
<small>
<ul class="tags">
{% for tag in page.tags %}<li><a href="{{base_url | safe}}tags/{{tag}}/">#{{ tag }}</a></li>{% endfor %}
2023-04-03 23:33:25 +02:00
</ul>
</small>
{%- endif %}
2023-03-25 21:38:16 +01:00
</article>
2023-03-29 21:48:27 +02:00
{% endblock main -%}