fix last modified not working for capitalized pages

This commit is contained in:
Jacky Zhao committed 2021-12-27 17:53:33 -05:00
1 parent dbe9b338cc
commit a45856d788
3 files changed
+14 -3

No files matched your search

+2 -2
View File
@@ -15,7 +15,7 @@
<article>
<h1>All {{.Title}}</h1>
<ul class="section-ul">
{{- range .Pages.ByLastmod -}}
{{- range .Pages.ByLastmod.Reverse -}}
<li class="section-li">
<div class="section">
<div class="desc">
@@ -23,7 +23,7 @@
<p>{{- .Summary -}}{{if .Truncated}}...{{end}}</p>
</div>
<p class="meta">
{{ .ReadingTime }} minute read, Last updated {{ .Lastmod.Format "January 2, 2006" }}
{{ .ReadingTime }} minute read. Last updated {{if ne .Date .Lastmod}}{{ .Lastmod.Format "January 2, 2006" }}{{else}}Unknown{{end}}
</p>
</div>
</li>
+1 -1
View File
@@ -15,7 +15,7 @@
<article>
{{if .Title}}<h1>{{ .Title }}</h1>{{end}}
<p class="meta">
Last updated {{ .Lastmod.Format "January 2, 2006" }}
Last updated {{if ne .Date .Lastmod}}{{ .Lastmod.Format "January 2, 2006" }}{{else}}Unknown{{end}}
</p>
{{if $.Site.Data.config.enableToc}}
<aside class="mainTOC">