diff options
author | Kevin Hamer <kevin@imarc.com> | 2020-10-11 17:28:37 -0400 |
---|---|---|
committer | Mantas Vilčinskas <hi@mnts.lt> | 2020-10-27 21:38:46 +0200 |
commit | f5e7f886e79241f002cf28a1c8018d81fbd2ee57 (patch) | |
tree | a30a91049bfac2893e535b641d9c0c4b6afd08c2 /layouts/issues/small.html | |
parent | 656f716ecb87ac563e1566592472a65db7019409 (diff) |
add .Site.Params.useRelativeTime
Diffstat (limited to 'layouts/issues/small.html')
-rw-r--r-- | layouts/issues/small.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/layouts/issues/small.html b/layouts/issues/small.html index 6112e46..79db524 100644 --- a/layouts/issues/small.html +++ b/layouts/issues/small.html @@ -8,7 +8,7 @@ <a href="{{ .Permalink }}" class="issue no-underline"> {{ if .Params.informational }} - <small class="date float-right relative-time" title="{{ .Date.Format "02 Jan 2006 03:05:00 PM" }}"> + <small class="date float-right {{ cond .Site.Params.useRelativeTime "relative-time" "" }}" title="{{ .Date.Format "02 Jan 2006 03:05:00 PM" }}"> {{ if .Site.Params.dateFormat }} {{ .Date.Format .Site.Params.dateFormat }} {{ else }} @@ -23,7 +23,7 @@ </span> {{ else if .Params.Resolved }} - <small class="date float-right relative-time" title="{{ .Date.Format "02 Jan 2006 03:05:00 PM" }}"> + <small class="date float-right {{ cond .Site.Params.useRelativeTime "relative-time" "" }}" title="{{ .Date.Format "02 Jan 2006 03:05:00 PM" }}"> {{ if .Site.Params.dateFormat }} {{ .Date.Format .Site.Params.dateFormat }} {{ else }} @@ -67,7 +67,7 @@ {{ end }} {{ else }} - <small class="date float-right relative-time" title="{{ .Date.Format "02 Jan 2006 03:05:00 PM" }}"> + <small class="date float-right {{ cond .Site.Params.useRelativeTime "relative-time" "" }}" title="{{ .Date.Format "02 Jan 2006 03:05:00 PM" }}"> {{ if .Site.Params.dateFormat }} {{ .Date.Format .Site.Params.dateFormat }} {{ else }} |