revise styles for displaying draft posts

This commit is contained in:
Huy Tran 2018-11-27 21:17:45 +11:00
parent 77613eb5ce
commit 9cd5abf95b
3 changed files with 16 additions and 5 deletions

View file

@ -1,10 +1,10 @@
{{ range . }}
<li>
<span class="list__title--small">
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
<a href="{{ .RelPermalink }}" {{if .Draft}}class="draft"{{end}}>{{ .Title }}</a>
{{if not .Date.IsZero}}
<time class="pull-right hidden-tablet">{{.Date.Format ("Jan 02 '06")}}</time>
{{end}}
</span>
</li>
{{ end }}
{{ end }}