Initiate articleElement boolean for content pages to use <article> tags
This commit is contained in:
parent
20d7386714
commit
49fa8517be
|
@ -42,7 +42,7 @@
|
|||
{% include "global/toc.njk" %}
|
||||
{% endif %}
|
||||
|
||||
{% set contentEl = "article" if isArticle or isStatement else "div" %}
|
||||
{% set contentEl = "article" if isArticle or articleElement else "div" %}
|
||||
|
||||
<{{contentEl}} class="content{{' content--divided' if isContentDivided }}">
|
||||
{{ content | safe }}
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
layout: main/content
|
||||
articleElement: true
|
||||
---
|
||||
|
||||
{% set currentUrl %}{{ page.url }}{% endset %}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"layout": "main/statement",
|
||||
"tags": "statements",
|
||||
"isStatement": true,
|
||||
"articleElement": true,
|
||||
"permalink": "/{{ page.fileSlug }}/",
|
||||
"eleventyComputed": {
|
||||
"desc": "{{ sitemeta.siteName }}'s {{ keyword }}.",
|
||||
|
|
Loading…
Reference in New Issue