From 0992c1d3de297e99a204b0716e18b2dcf40ef9f0 Mon Sep 17 00:00:00 2001 From: Ben Goldsworthy Date: Tue, 27 Aug 2024 17:00:16 +0200 Subject: [PATCH] replace `lang.NumFmt` --- layouts/_default/single.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 53d133e..d0669a6 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -32,9 +32,9 @@ {{ end }} -

~{{ .FuzzyWordCount | lang.NumFmt 0 }} words

-

Published:

-

Last modified: {{ .Lastmod.Format "January 2" }}{{ if in (slice 1 21 31) .Lastmod.Day}}st{{ else if in (slice 2 22) .Lastmod.Day}}nd{{ else if in (slice 3 23) .Lastmod.Day}}rd{{ else }}th{{ end }}, 1{{ .Lastmod.Format "2006" | lang.NumFmt 0 }} HE

+

~{{ .FuzzyWordCount | lang.FormatNumberCustom 0 }} words

+

Published:

+

Last modified: {{ .Lastmod.Format "January 2" }}{{ if in (slice 1 21 31) .Lastmod.Day}}st{{ else if in (slice 2 22) .Lastmod.Day}}nd{{ else if in (slice 3 23) .Lastmod.Day}}rd{{ else }}th{{ end }}, 1{{ .Lastmod.Format "2006" | lang.FormatNumberCustom 0 }} HE

{{ $post_age_in_years := math.Round ( div ( div ( now.Sub .PublishDate ).Hours 24 ) 365 ) }} {{ if ( or .Params.site .Params.controversial ( gt $post_age_in_years 2 ) ) }}