mirror of https://github.com/jpanther/congo.git
🐛 Fix showDraftLabel setting not applying
parent
7285cac334
commit
ce39d7438e
|
@ -4,7 +4,7 @@
|
||||||
<h1 class="mt-0 text-4xl font-extrabold">{{ .Title | emojify }}</h1>
|
<h1 class="mt-0 text-4xl font-extrabold">{{ .Title | emojify }}</h1>
|
||||||
<div class="mt-8 mb-12 text-base text-gray-400 dark:text-gray-500">
|
<div class="mt-8 mb-12 text-base text-gray-400 dark:text-gray-500">
|
||||||
{{ partial "article-meta.html" . }}
|
{{ partial "article-meta.html" . }}
|
||||||
{{ if .Draft }}
|
{{ if and .Draft .Site.Params.article.showDraftLabel }}
|
||||||
<span
|
<span
|
||||||
class="ml-2 px-1 py-[2px] text-xs font-normal border rounded-md text-primary-700 dark:text-primary-400 border-primary-400 dark:border-primary-600 inline-block align-middle mb-1"
|
class="ml-2 px-1 py-[2px] text-xs font-normal border rounded-md text-primary-700 dark:text-primary-400 border-primary-400 dark:border-primary-600 inline-block align-middle mb-1"
|
||||||
>
|
>
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<a class="hover:underline" href="{{ .Permalink }}">{{ .Title }}</a>
|
<a class="hover:underline" href="{{ .Permalink }}">{{ .Title }}</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ if .Draft }}
|
{{ if and .Draft .Site.Params.article.showDraftLabel }}
|
||||||
<span
|
<span
|
||||||
class="ml-1 px-1 py-[2px] text-xs font-normal border rounded-md text-primary-700 dark:text-primary-400 border-primary-400 dark:border-primary-600 inline-block align-middle mb-1"
|
class="ml-1 px-1 py-[2px] text-xs font-normal border rounded-md text-primary-700 dark:text-primary-400 border-primary-400 dark:border-primary-600 inline-block align-middle mb-1"
|
||||||
>
|
>
|
||||||
|
|
Loading…
Reference in New Issue