Apply formatting suggestions of Editor to page template

This commit is contained in:
Jonas Tobias Hopusch 2021-09-15 21:14:09 +02:00
parent 447df83a64
commit 448b2c144c
Failed to generate hash of commit
1 changed files with 26 additions and 23 deletions

View File

@ -1,26 +1,29 @@
{% extends "base.html" %} {% extends "base.html" %} {% block metadata %}
{% block metadata %} <meta name="description" content="{{ page.description }}" />
<meta name="description" content="{{ page.description }}"/> {% endblock %} {% block content %}
<h2>{{ page.title }}</h2>
{% endblock %} {% if page.date and page.date is defined %}
<p>
{% block content %} <em
<h2> ><strong>Published on</strong>:
{{ page.title }} <time datetime="{{page.date}}"
</h2> >{{ page.date | date(format="%A, %e %B %Y %R %Z",
{% if page.date and page.date is defined %} timezone="Europe/Berlin") }}</time
<p> ></em
<em><strong>Published on</strong>: <time datetime="{{page.date}}">{{ page.date | date(format="%A, %e %B %Y %R %Z", timezone="Europe/Berlin") }}</time></em> >
</p> </p>
{% endif %} {% endif %} {% if page.updated and page.updated != page.date %}
{% if page.updated and page.updated != page.date %} <p>
<p> <em
<em><strong>Last updated on</strong>: <time datetime="{{page.updated}}">{{ page.updated | date(format="%A, %e %B %Y %R %Z", timezone="Europe/Berlin") }}</time></em> ><strong>Last updated on</strong>:
</p> <time datetime="{{page.updated}}"
{% endif %} >{{ page.updated | date(format="%A, %e %B %Y %R %Z",
<div> timezone="Europe/Berlin") }}</time
{{ page.content | safe }} ></em
</div> >
</p>
{% endif %}
<div>{{ page.content | safe }}</div>
{% endblock content %} {% endblock content %}