Use article tag is the content is an article

This commit is contained in:
Helen Chong 2024-04-19 06:35:07 +08:00
parent 8a83a624d3
commit 5315e455d8
1 changed files with 9 additions and 3 deletions

View File

@ -14,9 +14,15 @@ layout: main/base
{% include "global/toc.njk" %}
{% endif %}
<div class="content {{'content--divided' if isContentDivided }}">
{{ content | safe }}
</div>
{% if isArticle %}
<article class="article">
{{ content | safe }}
</article>
{% else %}
<div class="content {{'content--divided' if isContentDivided }}">
{{ content | safe }}
</div>
{% endif %}
{% if title === "Articles" or tags and tags.includes("articles") or tags and tags.includes("blog pages") %}
{% include "main/content-nav.njk" %}