summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--layouts/posts/single.html13
-rw-r--r--layouts/recipes/single.html16
2 files changed, 29 insertions, 0 deletions
diff --git a/layouts/posts/single.html b/layouts/posts/single.html
index 072168c..ce18ad5 100644
--- a/layouts/posts/single.html
+++ b/layouts/posts/single.html
@@ -5,6 +5,19 @@
{{- range .Params.tags }}
<a href="/tags/{{ . | lower }}">#{{ . }}</a>
{{- end }}
+ {{- if .Draft }}
+ <section class="admonition">
+ <div class="admonition-title">
+ draft
+ </div>
+ <div class="admonition-content">
+ This blog post is still a
+ <strong>draft</strong>. It has most likely been
+ shared with you for reviewing purposes. Please
+ do not yet share this with other people.
+ </div>
+ </section>
+ {{- end }}
</header>
<main>
{{ .Content }}
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 }}
<a href="/tags/{{ . | lower }}">#{{ . }}</a>
{{- end }}
+ {{- if .Draft }}
+ <section class="admonition">
+ <div class="admonition-title">
+ draft
+ </div>
+ <div class="admonition-content">
+ This recipe is still a <strong>draft</strong>.
+ 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.
+ </div>
+ </section>
+ {{- end }}
</header>
<main>
{{ .Content }}