Verified Commit 490c2f64 authored by Valérianne's avatar Valérianne 💬
Browse files

Different format for edited pages

parent eac94adc
......@@ -19,7 +19,13 @@
</ul>
{{ end }}
<span class="publications">
Published on {{.PublishDate.Format "2006-01-02"}} and last edited on {{.Lastmod.Format "2006-01-02"}}.
{{ $pubDate := .PublishDate.Format "2006-01-02" }}
{{ $modDate := .Lastmod.Format "2006-01-02" }}
{{ if eq $pubDate $modDate }}
Published on {{.PublishDate.Format "2006-01-02"}}
{{ else }}
Published on {{.PublishDate.Format "2006-01-02"}} and last edited on {{.Lastmod.Format "2006-01-02"}}.
{{ end }}
</span>
</div>
</div>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment