修改日期格式
This commit is contained in:
parent
896d13793d
commit
a1d0547c99
2 changed files with 3 additions and 2 deletions
|
@ -19,7 +19,7 @@
|
||||||
<header class="post-header">
|
<header class="post-header">
|
||||||
{{ safeHTML (.Scratch.Get `firstEmoji`) }}
|
{{ safeHTML (.Scratch.Get `firstEmoji`) }}
|
||||||
<h2 class="post-title">{{ .Title }}</h2>
|
<h2 class="post-title">{{ .Title }}</h2>
|
||||||
<p class="post-meta">{{ .Date.Format "2006.1.2" }}</p>
|
<p class="post-meta">{{ .Date.Format "Jan 2, 2006" }}</p>
|
||||||
|
|
||||||
</header>
|
</header>
|
||||||
<p class="post-summary">{{ .Summary | plainify | htmlUnescape }}...</p>
|
<p class="post-summary">{{ .Summary | plainify | htmlUnescape }}...</p>
|
||||||
|
|
|
@ -5,7 +5,8 @@
|
||||||
<p class="post-meta">
|
<p class="post-meta">
|
||||||
{{- if or .Params.author .Site.Params.author -}}
|
{{- if or .Params.author .Site.Params.author -}}
|
||||||
{{ .Params.author | default .Site.Params.author }} · {{ end }}
|
{{ .Params.author | default .Site.Params.author }} · {{ end }}
|
||||||
{{- .Date.Format "2006.1.2" -}}
|
{{- .Date.Format "Jan 2, 2006" -}}
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
</header>
|
</header>
|
||||||
<div class="post-content">{{ .Content }}</div>
|
<div class="post-content">{{ .Content }}</div>
|
||||||
|
|
Loading…
Reference in a new issue