Initiate articleElement boolean for content pages to use <article> tags

This commit is contained in:
Helen Chong 2024-06-10 17:42:59 +08:00
parent 20d7386714
commit 49fa8517be
3 changed files with 3 additions and 2 deletions

View File

@ -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 }}

View File

@ -1,5 +1,6 @@
---
layout: main/content
articleElement: true
---
{% set currentUrl %}{{ page.url }}{% endset %}

View File

@ -1,7 +1,7 @@
{
"layout": "main/statement",
"tags": "statements",
"isStatement": true,
"articleElement": true,
"permalink": "/{{ page.fileSlug }}/",
"eleventyComputed": {
"desc": "{{ sitemeta.siteName }}'s {{ keyword }}.",