Changes dateform
to dateformat
This commit is contained in:
parent
227d365dbe
commit
fdf35c8c91
2 changed files with 2 additions and 2 deletions
|
@ -8,7 +8,7 @@
|
||||||
<div class="post">
|
<div class="post">
|
||||||
<h1 class="post-title"><a href="{{ .Permalink }}">{{ .Title }}</a></h1>
|
<h1 class="post-title"><a href="{{ .Permalink }}">{{ .Title }}</a></h1>
|
||||||
<span class="post-date">
|
<span class="post-date">
|
||||||
{{- .Date.Format (.Site.Params.dateform | default "Jan 02, 2006") -}}
|
{{- .Date.Format (.Site.Params.dateformat | default "Jan 02, 2006") -}}
|
||||||
</span>
|
</span>
|
||||||
{{ .Summary }}
|
{{ .Summary }}
|
||||||
{{ if .Truncated }}
|
{{ if .Truncated }}
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
<span class="text-left post-date meta">
|
<span class="text-left post-date meta">
|
||||||
<!-- published date -->
|
<!-- published date -->
|
||||||
{{ if not .Date.IsZero }}
|
{{ 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 }}
|
{{ end }}
|
||||||
<!-- categories -->
|
<!-- categories -->
|
||||||
{{ with .Params.categories }}
|
{{ with .Params.categories }}
|
||||||
|
|
Loading…
Reference in a new issue