summaryrefslogtreecommitdiff
path: root/layouts/posts/single.html
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2022-05-04 11:04:08 +0200
committerPatrick Spek <p.spek@tyil.nl>2022-05-04 11:04:08 +0200
commitcd5cb49995d4998df9060de49296c9dabca7252e (patch)
treee26c11f72638dc21e0a13e51752074c3707e592c /layouts/posts/single.html
parent7ca5b93fb2c1499edbacc132926f79278e550d1f (diff)
Add draft admonitions
Diffstat (limited to 'layouts/posts/single.html')
-rw-r--r--layouts/posts/single.html13
1 files changed, 13 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 }}