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" %}
|
{% extends "base.html" %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
{% if metadata.show_title %}
|
||||||
{% include "title.html" %}
|
{% include "title.html" %}
|
||||||
|
{% endif %}
|
||||||
{{ content | safe }}
|
{{ content | safe }}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,18 @@
|
||||||
{% extends "base.html" %} {% block content %} {% include "title.html" %} {% if
|
{% extends "base.html" %} {% block content %}
|
||||||
metadata.date %}
|
|
||||||
|
{% if metadata.show_title %}
|
||||||
|
{% include "title.html" %}
|
||||||
|
{% if metadata.date %}
|
||||||
<center>
|
<center>
|
||||||
<time class="post-date" datetime="{{ metadata.date | safe }}"
|
<time class="post-date" datetime="{{ metadata.date | safe }}"
|
||||||
>{{ metadata.date | safe}}</time>
|
>{{ metadata.date | safe}}</time>
|
||||||
</center>
|
</center>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
<hr>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<article>{{ content | safe }}</article>
|
<article>{{ content | safe }}</article>
|
||||||
{% endblock %}
|
{% 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>
|
<article>{{ content | safe }}</article>
|
||||||
|
|
||||||
|
@ -13,3 +17,4 @@
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
{% endif %} {% endblock %}
|
{% endif %} {% endblock %}
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,2 @@
|
||||||
{% if metadata.show_title %}
|
|
||||||
<center><h1 class="title">{{ metadata.title }}</h1></center>
|
<center><h1 class="title">{{ metadata.title }}</h1></center>
|
||||||
<hr>
|
|
||||||
{% endif %}
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue