diff options
author | Patrick Spek <p.spek@tyil.nl> | 2022-05-04 11:04:08 +0200 |
---|---|---|
committer | Patrick Spek <p.spek@tyil.nl> | 2022-05-04 11:04:08 +0200 |
commit | cd5cb49995d4998df9060de49296c9dabca7252e (patch) | |
tree | e26c11f72638dc21e0a13e51752074c3707e592c /layouts/recipes/single.html | |
parent | 7ca5b93fb2c1499edbacc132926f79278e550d1f (diff) |
Add draft admonitions
Diffstat (limited to 'layouts/recipes/single.html')
-rw-r--r-- | layouts/recipes/single.html | 16 |
1 files changed, 16 insertions, 0 deletions
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 }} |