Use article tag is the content is an article
This commit is contained in:
parent
8a83a624d3
commit
5315e455d8
|
@ -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" %}
|
||||||
|
|
Loading…
Reference in New Issue