Replace date_medium time formats with "Jan 2, 2006" explicit format

This commit is contained in:
Eryn Wells 2021-10-11 17:38:34 -07:00
parent 0e2b1f242e
commit 84ecd776cc
2 changed files with 2 additions and 5 deletions

View file

@ -14,7 +14,7 @@
{{ $paginator := .Paginate $pages }} {{ range $index, $page := $paginator.Pages }}
<article class="post-entry">
<h2>{{ .Title }}</h2>
<time>{{ .Date | time.Format ":date_medium" }}</time>
<time>{{ .Date | time.Format "Jan 2, 2006" }}</time>
<a href="{{ .Permalink }}"></a>
</article>
{{ end }}

View file

@ -3,10 +3,7 @@
<article class="post-single">
<header class="post-title">
<p>
<time>{{ .Date | time.Format ":date_medium" }}</time>
{{ if or .Params.Author site.Author.name }}
<span>{{ .Params.Author | default site.Author.name }}</span>
{{ end }}
<time>{{ .Date | time.Format "Jan 2, 2006" }}</time>
</p>
<h1>{{ .Title }}</h1>
</header>