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