Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/vividvilla/ezhil.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVivek R <vividvilla@gmail.com>2019-10-12 20:09:08 +0300
committerGitHub <noreply@github.com>2019-10-12 20:09:08 +0300
commit10254883df6c7cb8b38b6443f27ff098c6b08bf8 (patch)
treec3df2cf9684a9567513b8a526dbd0dd3276558d1 /layouts/_default/single.html
parente902ec0239b443b09b78e43da4c6b20091f17ea8 (diff)
parent298648a63b578e4b2eea19658e434d63177a8a6f (diff)
Merge pull request #18 from cgiacomi/feature/draftlabal
feat: add draft label for draft posts
Diffstat (limited to 'layouts/_default/single.html')
-rw-r--r--layouts/_default/single.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 26d1c1b..61ec209 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -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">