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:
authorcgiacomi <christiangiacomi@gmail.com>2019-10-12 18:24:28 +0300
committercgiacomi <christiangiacomi@gmail.com>2019-10-12 18:24:28 +0300
commit298648a63b578e4b2eea19658e434d63177a8a6f (patch)
treec063a2e0608ee0fbc7feb47374d3e5b01b2dea7c
parent186ad233331c25980b913b25f7bc38b7b31375e6 (diff)
feat: add draft label to recent articles
-rw-r--r--layouts/index.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/index.html b/layouts/index.html
index 5b5d87a..b71dd49 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -14,7 +14,7 @@
{{ $paginator := .Paginate (where $pages "Params.hidden" "ne" true) }}
{{ range $paginator.Pages }}
<div class="post">
- <div class="meta">{{ dateFormat "Jan 2, 2006" .Date }}</div>
+ <div class="meta">{{ dateFormat "Jan 2, 2006" .Date }}{{ if .Draft }} <span class="draft-label">DRAFT</span> {{ end }}</div>
<a class="title" href="{{ .RelPermalink }}">{{.Title}}</a> &mdash;
<span class="description">
{{ if isset .Params "description" }}