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" %} {% include "global/toc.njk" %}
{% endif %} {% endif %}
<div class="content {{'content--divided' if isContentDivided }}"> {% if isArticle %}
{{ content | safe }} <article class="article">
</div> {{ 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") %} {% if title === "Articles" or tags and tags.includes("articles") or tags and tags.includes("blog pages") %}
{% include "main/content-nav.njk" %} {% include "main/content-nav.njk" %}