From ae0d54e5674b0ab66ed97d12fe1f82685a3055ea Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Wed, 27 Nov 2024 00:40:44 -0800 Subject: [PATCH] Add draft warning to the void Signed-off-by: Danila Fedorin --- layouts/thevoid/baseof.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/layouts/thevoid/baseof.html b/layouts/thevoid/baseof.html index c738e57..91efa1d 100644 --- a/layouts/thevoid/baseof.html +++ b/layouts/thevoid/baseof.html @@ -8,6 +8,11 @@ {{- partial "header.html" . -}}

+ + {{- if .Draft -}} + {{- partial "warning.html" (i18n "postDraft") -}} + {{- end -}} + {{- block "main" . }}{{- end }}
{{- block "after" . }}{{- end }}