Add defaults for date things

This commit is contained in:
Djordje Atlialp 2019-02-22 16:41:01 +01:00
parent 4544e3c818
commit bae3b85b1f
No known key found for this signature in database
GPG key ID: 94FF806E6BF61DD3
3 changed files with 5 additions and 5 deletions

View file

@ -15,7 +15,7 @@
<li class="post-item">
<a href="{{.Permalink}}">
<span class="post-title">{{.Title}}</span>
<span class="post-day">{{ .Date.Format .Site.Params.dateformShort }}</span>
<span class="post-day">{{ if .Site.Params.dateformShort }}{{ .Date.Format .Site.Params.dateformShort }}{{ else }}{{ .Date.Format "Jan 2"}}{{ end }}</span>
</a>
</li>
{{- end }}