From cd5cb49995d4998df9060de49296c9dabca7252e Mon Sep 17 00:00:00 2001
From: Patrick Spek
Date: Wed, 4 May 2022 11:04:08 +0200
Subject: Add draft admonitions
---
layouts/recipes/single.html | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
(limited to 'layouts/recipes/single.html')
diff --git a/layouts/recipes/single.html b/layouts/recipes/single.html
index 01b0bd2..14b8ffc 100644
--- a/layouts/recipes/single.html
+++ b/layouts/recipes/single.html
@@ -9,6 +9,22 @@
{{- range .Params.tags }}
#{{ . }}
{{- end }}
+ {{- if .Draft }}
+
+
+ draft
+
+
+ This recipe is still a draft.
+ It has most likely been shared with you for
+ reviewing purposes, but neither the
+ instructions nor the ingredients have been
+ properly checked yet. Do not make this recipe
+ unless you are an experienced cook, and please
+ do not yet share it with other people.
+
+
+ {{- end }}
{{ .Content }}
--
cgit v1.1