Apply formatting suggestions of Editor to page template

pull/1/head
parent 447df83a64
commit 448b2c144c
Failed to generate hash of commit

@ -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>
{% if page.date and page.date is defined %}
<p>
<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>
{% endif %}
{% if page.updated and page.updated != page.date %}
<p>
<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>
</p>
{% endif %}
<div>
{{ page.content | safe }}
</div>
{% endblock %} {% block content %}
<h2>{{ page.title }}</h2>
{% if page.date and page.date is defined %}
<p>
<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>
{% endif %} {% if page.updated and page.updated != page.date %}
<p>
<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
>
</p>
{% endif %}
<div>{{ page.content | safe }}</div>
{% endblock content %}

Loading…
Cancel
Save