From ce39d7438e9ad5f7b5aee883ca89b98ec28f900b Mon Sep 17 00:00:00 2001 From: James Panther <4462786+jpanther@users.noreply.github.com> Date: Mon, 16 Aug 2021 10:14:51 +1000 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20showDraftLabel=20setting?= =?UTF-8?q?=20not=20applying?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layouts/_default/single.html | 2 +- layouts/partials/article-link.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 428a5ee6..a77d1420 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -4,7 +4,7 @@

{{ .Title | emojify }}

{{ partial "article-meta.html" . }} - {{ if .Draft }} + {{ if and .Draft .Site.Params.article.showDraftLabel }} diff --git a/layouts/partials/article-link.html b/layouts/partials/article-link.html index 3490bd49..535f822b 100644 --- a/layouts/partials/article-link.html +++ b/layouts/partials/article-link.html @@ -13,7 +13,7 @@ {{ else }} {{ .Title }} {{ end }} - {{ if .Draft }} + {{ if and .Draft .Site.Params.article.showDraftLabel }}