diff options
author | Daniel Saunders <daniel.saunders@gmail.com> | 2019-12-22 05:55:35 +0300 |
---|---|---|
committer | Daniel Saunders <daniel.saunders@gmail.com> | 2019-12-22 05:55:35 +0300 |
commit | 312690b2a05c3c3bd91bb0f9cf3490415d2acd05 (patch) | |
tree | b556edb2ae77023b8bab048f5353324002f39f5d | |
parent | b2d04c9b70bd38879166940d8162ea0a06221066 (diff) |
Indicate DRAFT on single page.
-rw-r--r-- | layouts/_default/single.html | 2 | ||||
-rw-r--r-- | layouts/sermons/single.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 526ea79..926495d 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -3,7 +3,7 @@ {{ "<!-- Main -->" | safeHTML }}
<section id="main" class="container">
<header>
- <h2>{{ .Params.title }}</h2>
+ <h2>{{ if .Draft }}DRAFT: {{end}}{{ .Params.title }}</h2>
{{ with .Params.subtitle }}
<p>{{ . }}</p>
{{ end }}
diff --git a/layouts/sermons/single.html b/layouts/sermons/single.html index 49666ab..74f8ac5 100644 --- a/layouts/sermons/single.html +++ b/layouts/sermons/single.html @@ -2,7 +2,7 @@ {{ "<!-- Main -->" | safeHTML }} <section id="main" class="container"> <header> - <h2>{{ .Params.title }}</h2> + <h2>{{ if .Draft }}DRAFT: {{end}}{{ .Params.title }}</h2> {{ with .Params.passage }} <p>{{ . }}</p> {{ end }} |