Add draft post indicator

This commit is contained in:
James Panther
2021-08-14 14:57:31 +10:00
parent 910426416e
commit 60a0d89dde
5 changed files with 17 additions and 2 deletions
+7
View File
@@ -13,6 +13,13 @@
{{ else }}
<a class="hover:underline" href="{{ .Permalink }}">{{ .Title }}</a>
{{ end }}
{{ if .Draft }}
<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"
>
Draft
</span>
{{ end }}
{{ if templates.Exists "partials/extend-article-link.html" }}
{{ partial "extend-article-link.html" . }}
{{ end }}