1{{ define "repo/fragments/timeWrapper" }}
2<time datetime="{{ .Time | iso8601DateTimeFmt }}" title="{{ .Time | longTimeFmt }}">{{ .Content }}</time>
3{{ end }}
4
5{{ define "repo/fragments/time" }}
6{{ template "repo/fragments/timeWrapper" (dict "Time" . "Content" (. | relTimeFmt)) }}
7{{ end }}
8
9{{ define "repo/fragments/shortTime" }}
10{{ template "repo/fragments/timeWrapper" (dict "Time" . "Content" (. | shortRelTimeFmt)) }}
11{{ end }}
12
13{{ define "repo/fragments/shortTimeAgo" }}
14{{ template "repo/fragments/timeWrapper" (dict "Time" . "Content" (print (. | shortRelTimeFmt) " ago")) }}
15{{ end }}
16
17{{ define "repo/fragments/duration" }}
18<time datetime="{{ . | iso8601DurationFmt }}" title="{{ . | longDurationFmt }}">{{ . | durationFmt }}</time>
19{{ end }}