Add draft warning.

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

View File

@ -233,3 +233,10 @@ figure {
.twitter-tweet { .twitter-tweet {
margin: auto; margin: auto;
} }
.draft-warning {
@include bordered-block;
padding: 0.5rem;
background-color: #ffee99;
border-color: #f5c827;
}

View File

@ -18,6 +18,15 @@
</div> </div>
</div> </div>
{{ end }} {{ 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 }} {{ .Content }}
</div> </div>
{{ end }} {{ end }}