blob: 5b26c6852ec26e5bfa657a20bb5b04a6dd3967bb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
<micro-metadata-datetime
title="{{ .Date | time.Format "Posted: Monday, January 2, 2006 at 15:04:05 MST" }}
{{ if .Lastmod.After .Date }}{{ .Lastmod | time.Format "Edited: Monday, January 2, 2006 at 15:04:05 MST" }}{{ end }}">
{{- safeHTML (readFile (print (partial "function-paths.html").static "/icons/feather/calendar.svg")) -}}
<time datetime="{{ .Date | time.Format "2006-01-02T15:04:05Z" }}">
{{ (.Date.Local | time.Format "15:04 Jan 2 2006") -}}
</time>
{{- /* This comment removes trailing newlines and white spaces. */ -}}
{{ if .Lastmod.After .Date }}
<span>(edited)</span>
{{- end -}}
{{- /* This comment removes trailing newlines and white spaces. */ -}}
</micro-metadata-datetime>
{{- /* This comment removes trailing newlines and white spaces. */ -}}
|