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" %}
|
{% include "global/toc.njk" %}
|
||||||
{% endif %}
|
{% 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 }}">
|
<{{contentEl}} class="content{{' content--divided' if isContentDivided }}">
|
||||||
{{ content | safe }}
|
{{ content | safe }}
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
layout: main/content
|
layout: main/content
|
||||||
|
articleElement: true
|
||||||
---
|
---
|
||||||
|
|
||||||
{% set currentUrl %}{{ page.url }}{% endset %}
|
{% set currentUrl %}{{ page.url }}{% endset %}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"layout": "main/statement",
|
"layout": "main/statement",
|
||||||
"tags": "statements",
|
"tags": "statements",
|
||||||
"isStatement": true,
|
"articleElement": true,
|
||||||
"permalink": "/{{ page.fileSlug }}/",
|
"permalink": "/{{ page.fileSlug }}/",
|
||||||
"eleventyComputed": {
|
"eleventyComputed": {
|
||||||
"desc": "{{ sitemeta.siteName }}'s {{ keyword }}.",
|
"desc": "{{ sitemeta.siteName }}'s {{ keyword }}.",
|
||||||
|
|
Loading…
Reference in New Issue