Replace date_medium time formats with "Jan 2, 2006" explicit format
This commit is contained in:
parent
0e2b1f242e
commit
84ecd776cc
2 changed files with 2 additions and 5 deletions
|
@ -14,7 +14,7 @@
|
||||||
{{ $paginator := .Paginate $pages }} {{ range $index, $page := $paginator.Pages }}
|
{{ $paginator := .Paginate $pages }} {{ range $index, $page := $paginator.Pages }}
|
||||||
<article class="post-entry">
|
<article class="post-entry">
|
||||||
<h2>{{ .Title }}</h2>
|
<h2>{{ .Title }}</h2>
|
||||||
<time>{{ .Date | time.Format ":date_medium" }}</time>
|
<time>{{ .Date | time.Format "Jan 2, 2006" }}</time>
|
||||||
<a href="{{ .Permalink }}"></a>
|
<a href="{{ .Permalink }}"></a>
|
||||||
</article>
|
</article>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
@ -3,10 +3,7 @@
|
||||||
<article class="post-single">
|
<article class="post-single">
|
||||||
<header class="post-title">
|
<header class="post-title">
|
||||||
<p>
|
<p>
|
||||||
<time>{{ .Date | time.Format ":date_medium" }}</time>
|
<time>{{ .Date | time.Format "Jan 2, 2006" }}</time>
|
||||||
{{ if or .Params.Author site.Author.name }}
|
|
||||||
<span>{{ .Params.Author | default site.Author.name }}</span>
|
|
||||||
{{ end }}
|
|
||||||
</p>
|
</p>
|
||||||
<h1>{{ .Title }}</h1>
|
<h1>{{ .Title }}</h1>
|
||||||
</header>
|
</header>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue