From 5315e455d8669411e6760fed6068007ed26f464e Mon Sep 17 00:00:00 2001 From: Helen Chong <119173961+helenclx@users.noreply.github.com> Date: Fri, 19 Apr 2024 06:35:07 +0800 Subject: [PATCH] Use article tag is the content is an article --- src/_includes/main/content.njk | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/_includes/main/content.njk b/src/_includes/main/content.njk index 5cd0a6db..37e93027 100644 --- a/src/_includes/main/content.njk +++ b/src/_includes/main/content.njk @@ -14,9 +14,15 @@ layout: main/base {% include "global/toc.njk" %} {% endif %} -
- {{ content | safe }} -
+ {% if isArticle %} +
+ {{ content | safe }} +
+ {% else %} +
+ {{ content | safe }} +
+ {% endif %} {% if title === "Articles" or tags and tags.includes("articles") or tags and tags.includes("blog pages") %} {% include "main/content-nav.njk" %}