From 49fa8517be47be6fee84f22356edb6fa9064529b Mon Sep 17 00:00:00 2001 From: Helen Chong <119173961+helenclx@users.noreply.github.com> Date: Mon, 10 Jun 2024 17:42:59 +0800 Subject: [PATCH] Initiate articleElement boolean for content pages to use
tags --- src/_includes/global/content.njk | 2 +- src/_includes/main/changelogs.njk | 1 + src/statements/statements.11tydata.json | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/_includes/global/content.njk b/src/_includes/global/content.njk index 345cc0b1..1a492acb 100644 --- a/src/_includes/global/content.njk +++ b/src/_includes/global/content.njk @@ -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 }} diff --git a/src/_includes/main/changelogs.njk b/src/_includes/main/changelogs.njk index a581f6e2..cf55add9 100644 --- a/src/_includes/main/changelogs.njk +++ b/src/_includes/main/changelogs.njk @@ -1,5 +1,6 @@ --- layout: main/content +articleElement: true --- {% set currentUrl %}{{ page.url }}{% endset %} diff --git a/src/statements/statements.11tydata.json b/src/statements/statements.11tydata.json index c7ae793b..221dfa0b 100644 --- a/src/statements/statements.11tydata.json +++ b/src/statements/statements.11tydata.json @@ -1,7 +1,7 @@ { "layout": "main/statement", "tags": "statements", - "isStatement": true, + "articleElement": true, "permalink": "/{{ page.fileSlug }}/", "eleventyComputed": { "desc": "{{ sitemeta.siteName }}'s {{ keyword }}.",