From b4eb91f6c0cc632c87a7a3c50bdcaf864c9827a1 Mon Sep 17 00:00:00 2001 From: Leilukin 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" %}