Add defaults for date things
This commit is contained in:
parent
4544e3c818
commit
bae3b85b1f
3 changed files with 5 additions and 5 deletions
|
|
@ -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 }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue