Mark posts as draft in listing
This commit is contained in:
parent
32f977b791
commit
c8b4100cd1
|
@ -3,7 +3,13 @@
|
|||
<p>
|
||||
<ul class="content-list">
|
||||
{{ range .Pages.ByPublishDate.Reverse }}
|
||||
<li><span>[</span><span class="date">{{ .PublishDate | time.Format "2006-01-01" }}</span><span>]</span> <a href="{{ .Permalink }}">{{ .Title }}</a></li>
|
||||
<li>
|
||||
<span>[</span><span class="date">{{ .PublishDate | time.Format "2006-01-01" }}</span><span>]</span>
|
||||
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
||||
{{- if .Draft }}
|
||||
<i>(DRAFT)</i>
|
||||
{{ end -}}
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</p>
|
||||
|
|
Loading…
Reference in New Issue