Add draft warning.

This commit is contained in:
2020-09-27 16:22:29 -07:00
parent 2bc2c282e1
commit e7edd43034
2 changed files with 16 additions and 0 deletions

View File

@@ -18,6 +18,15 @@
</div>
</div>
{{ end }}
{{ if .Draft }}
<div class="draft-warning">
<em>Warning!</em> This post is a draft. At best, it may contain grammar mistakes;
at worst, it can include significant errors and bugs. Please
use your best judgement!
</div>
{{ end }}
{{ .Content }}
</div>
{{ end }}