Add "(Draft)" to titles when applicable
This commit is contained in:
parent
e9510fda76
commit
a9b44ccf13
@ -7,7 +7,7 @@
|
|||||||
{{ range .Pages }}
|
{{ range .Pages }}
|
||||||
<article class="all-list">
|
<article class="all-list">
|
||||||
<div class="title-list">
|
<div class="title-list">
|
||||||
<h2><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2>
|
<h2><a href="{{ .RelPermalink }}">{{ if .Draft }}<i>(Draft)</i> {{ end }}{{ .Title }}</a></h2>
|
||||||
<div class="title-list-date">
|
<div class="title-list-date">
|
||||||
{{ if eq .Date.IsZero false }}
|
{{ if eq .Date.IsZero false }}
|
||||||
<time>{{ .Date.Format "Monday, January 2, 2006" }}</time>
|
<time>{{ .Date.Format "Monday, January 2, 2006" }}</time>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{{ define "title" }}{{ .Title }} – {{ .Site.Title }}{{ end }}
|
{{ define "title" }}{{ .Title }} – {{ .Site.Title }}{{ end }}
|
||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
<div class="title-header">
|
<div class="title-header">
|
||||||
<h1>{{ .Title }}</h1>
|
<h1>{{ if .Draft }}<i>(Draft)</i> {{ end }}{{ .Title }}</h1>
|
||||||
<div class="title-header-date">
|
<div class="title-header-date">
|
||||||
{{ if eq .Date.IsZero false }}
|
{{ if eq .Date.IsZero false }}
|
||||||
<time>{{ .Date.Format "Monday, January 2, 2006" }}</time>
|
<time>{{ .Date.Format "Monday, January 2, 2006" }}</time>
|
||||||
@ -13,6 +13,3 @@
|
|||||||
</div>
|
</div>
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
{{ range first 2 ( where .Pages "Section" "posts" ) }}
|
{{ range first 2 ( where .Pages "Section" "posts" ) }}
|
||||||
<article class="all-list">
|
<article class="all-list">
|
||||||
<div class="title-list">
|
<div class="title-list">
|
||||||
<h3><a href="{{ .RelPermalink }}">{{ .Title }}</a></h3>
|
<h3><a href="{{ .RelPermalink }}">{{ if .Draft }}<i>(Draft)</i> {{ end }}{{ .Title }}</a></h3>
|
||||||
<div class="title-list-date">
|
<div class="title-list-date">
|
||||||
{{ if eq .Date.IsZero false }}
|
{{ if eq .Date.IsZero false }}
|
||||||
<time>{{ .Date.Format "Monday, January 2, 2006" }}</time>
|
<time>{{ .Date.Format "Monday, January 2, 2006" }}</time>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user