Changes dateform to dateformat

This commit is contained in:
Huy Tran 2018-03-30 19:27:52 +11:00
parent 227d365dbe
commit fdf35c8c91
2 changed files with 2 additions and 2 deletions

View file

@ -8,7 +8,7 @@
<div class="post">
<h1 class="post-title"><a href="{{ .Permalink }}">{{ .Title }}</a></h1>
<span class="post-date">
{{- .Date.Format (.Site.Params.dateform | default "Jan 02, 2006") -}}
{{- .Date.Format (.Site.Params.dateformat | default "Jan 02, 2006") -}}
</span>
{{ .Summary }}
{{ if .Truncated }}

View file

@ -5,7 +5,7 @@
<span class="text-left post-date meta">
<!-- published date -->
{{ if not .Date.IsZero }}
<i class="fas fa-calendar-alt"></i> {{ .Date.Format (.Site.Params.dateform | default "Jan 02, 2006") -}}
<i class="fas fa-calendar-alt"></i> {{ .Date.Format (.Site.Params.dateformat | default "Jan 02, 2006") -}}
{{ end }}
<!-- categories -->
{{ with .Params.categories }}