fixed structure of page date in templates

This commit is contained in:
Daniel Fichtinger 2025-07-14 16:34:17 -04:00
parent de86a92928
commit 24919171ad
4 changed files with 20 additions and 6 deletions

View file

@ -1,7 +1,9 @@
{% extends "base.html" %}
{% block content %}
{% if metadata.show_title %}
{% include "title.html" %}
{% endif %}
{{ content | safe }}
{% endblock %}

View file

@ -1,9 +1,18 @@
{% extends "base.html" %} {% block content %} {% include "title.html" %} {% if
metadata.date %}
{% extends "base.html" %} {% block content %}
{% if metadata.show_title %}
{% include "title.html" %}
{% if metadata.date %}
<center>
<time class="post-date" datetime="{{ metadata.date | safe }}"
>{{ metadata.date | safe}}</time>
</center>
{% endif %}
<hr>
{% endif %}
<article>{{ content | safe }}</article>
{% endblock %}

View file

@ -1,4 +1,8 @@
{% extends "base.html" %} {% block content %} {% include "title.html" %}
{% extends "base.html" %} {% block content %}
{% if metadata.show_title %}
{% include "title.html" %}
{% endif %}
<article>{{ content | safe }}</article>
@ -13,3 +17,4 @@
{% endfor %}
</ul>
{% endif %} {% endblock %}

View file

@ -1,4 +1,2 @@
{% if metadata.show_title %}
<center><h1 class="title">{{ metadata.title }}</h1></center>
<hr>
{% endif %}