feat: add draft label for draft posts

This commit is contained in:
cgiacomi
2019-10-11 21:25:17 +02:00
parent 6e5bf0c053
commit a6070f5408
2 changed files with 10 additions and 1 deletions

View File

@@ -7,7 +7,7 @@
<div class="post-header">
<h1 class="title">{{ .Title }}</h1>
<div class="meta">Posted at &mdash; {{ dateFormat "Jan 2, 2006" .Date }}</div>
<div class="meta">Posted at &mdash; {{ dateFormat "Jan 2, 2006" .Date }}{{ if .Draft }} <span class="draft-label">DRAFT</span> {{ end }}</div>
</div>
<div class="markdown">