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

github.com/gizak/nofancy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--layouts/_default/list.html3
-rw-r--r--layouts/_default/single.html2
-rw-r--r--layouts/index.html3
3 files changed, 7 insertions, 1 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 2d67838..fb39fd4 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -13,6 +13,9 @@
{{ range $name, $page := .Data.Pages }}
{{ if eq .Type "post" }}
<li>
+ {{ if .Draft }}
+ DRAFT:
+ {{ end }}
<a href="{{ .Permalink }}">{{ $page.Title }}</a>
<p class="footnote">
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index a8f0cbe..c0094fe 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -25,7 +25,7 @@
series:{{ range .Params.series }}<a href="{{ $baseurl }}series/{{ . | urlize }}">{{ . }}</a> {{ end }}
{{ end }}
</p>
- <h1>{{ .Title }}</h1>
+ <h1>{{ if .Draft }}DRAFT: {{end}}{{ .Title }}</h1>
</div>
<div class="post-content">
diff --git a/layouts/index.html b/layouts/index.html
index 7ecc689..29a79bf 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -13,6 +13,9 @@
{{ range $name, $page := .Site.Pages }}
{{ if eq .Type "post" }}
<li>
+ {{ if .Draft }}
+ DRAFT:
+ {{ end }}
<a href="{{ .Permalink }}">{{ $page.Title }}</a>
<p class="footnote">