Fix .Lastmod context
This commit is contained in:
parent
0e14937d31
commit
855855cd60
@ -21,13 +21,13 @@
|
|||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<div class="post-meta">
|
<div class="post-meta">
|
||||||
{{ with .Date }}
|
{{ if .Date }}
|
||||||
<time class="post-date">
|
<time class="post-date">
|
||||||
{{ .Format "2006-01-02" }}
|
{{ .Date.Format "2006-01-02" }} ::
|
||||||
</time>
|
</time>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ with .Params.Author }}
|
{{ with .Params.Author }}
|
||||||
<span class="post-author">:: {{ . }}</span>
|
<span class="post-author">{{ . }}</span>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -11,9 +11,9 @@
|
|||||||
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
||||||
</h1>
|
</h1>
|
||||||
<div class="post-meta">
|
<div class="post-meta">
|
||||||
{{ with .Date }}
|
{{ if .Date }}
|
||||||
<time class="post-date">
|
<time class="post-date">
|
||||||
{{ .Format "2006-01-02" }} ::
|
{{ .Date.Format "2006-01-02" }} ::
|
||||||
</time>
|
</time>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ with .Params.Author }}
|
{{ with .Params.Author }}
|
||||||
|
@ -4,9 +4,9 @@
|
|||||||
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
||||||
</h1>
|
</h1>
|
||||||
<div class="post-meta">
|
<div class="post-meta">
|
||||||
{{ with .Date }}
|
{{ if .Date }}
|
||||||
<time class="post-date">
|
<time class="post-date">
|
||||||
{{ .Format "2006-01-02" }} ::
|
{{ .Date.Format "2006-01-02" }} ::
|
||||||
{{ if $.Site.Params.showLastUpdated }}
|
{{ if $.Site.Params.showLastUpdated }}
|
||||||
[{{or $.Site.Params.updatedDatePrefix "Updated"}} :: {{ .Lastmod.Format "2006-01-02" }}]
|
[{{or $.Site.Params.updatedDatePrefix "Updated"}} :: {{ .Lastmod.Format "2006-01-02" }}]
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
Loading…
Reference in New Issue
Block a user