fixed structure of page date in templates
This commit is contained in:
parent
de86a92928
commit
24919171ad
4 changed files with 20 additions and 6 deletions
|
@ -1,7 +1,9 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
{% if metadata.show_title %}
|
||||
{% include "title.html" %}
|
||||
{% endif %}
|
||||
{{ content | safe }}
|
||||
{% endblock %}
|
||||
|
||||
|
|
|
@ -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 %}
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -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 %}
|
||||
|
||||
|
|
|
@ -1,4 +1,2 @@
|
|||
{% if metadata.show_title %}
|
||||
<center><h1 class="title">{{ metadata.title }}</h1></center>
|
||||
<hr>
|
||||
{% endif %}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue