changed main content display (div instead of article)

This commit is contained in:
eclipse 2025-02-20 22:18:32 +01:00
parent a10880c289
commit 0c6c836ebd
2 changed files with 8 additions and 3 deletions

View File

@ -12,7 +12,7 @@ article.title }}{% endif
{% endblock content_header %} {% endblock content_header %}
{% block content_body %} {% block content_body %}
<article class="article-body"> <div class="article-body">
{% if article.content | length is eq(0) %} {% if article.content | length is eq(0) %}
<div class="no-content"> <div class="no-content">
{% endif %} {% endif %}
@ -32,5 +32,5 @@ article.title }}{% endif
</div> </div>
{% endif %} {% endif %}
<footer class="article-footer"><a href="/{{ article.save_as.split('/')[:-1] | join('/') }}/">&#8592; {{ article.category }}</a></footer> <footer class="article-footer"><a href="/{{ article.save_as.split('/')[:-1] | join('/') }}/">&#8592; {{ article.category }}</a></footer>
</article> </div>
{% endblock content_body %} {% endblock content_body %}

View File

@ -10,8 +10,13 @@
{% endblock content_header %} {% endblock content_header %}
{% block content_body %} {% block content_body %}
<article>{{ page.content }}</article> <div>
{{ page.content }}
</div>
{% endblock content_body %} {% endblock content_body %}
{% block content_footer %} {% block content_footer %}
{% if page.last_line is defined %}
<p class="muted">{{ page.last_line }}</p>
{% endif %}
{% endblock content_footer %} {% endblock content_footer %}