diff options
author | Nicholas Johnson <mail@nicholasjohnson.ch> | 2024-11-08 00:00:00 +0000 |
---|---|---|
committer | Nicholas Johnson <mail@nicholasjohnson.ch> | 2024-11-08 00:00:00 +0000 |
commit | 033724cd709402e1da184e60da2da3031d8e119990129baa7ced9f957904e615 (patch) | |
tree | 4df486cfca09184234672c36089a34d467795640f731db850bed3ef91acfcea3 /layouts/partials | |
parent | 3b77b61bf662efe71c7f75e73a2d6fae0e3c8c8b74b05f036809b0913785a432 (diff) | |
download | hugo-theme-journal-033724cd709402e1da184e60da2da3031d8e119990129baa7ced9f957904e615.tar.gz hugo-theme-journal-033724cd709402e1da184e60da2da3031d8e119990129baa7ced9f957904e615.zip |
Stop safeHTML overuse in emojis for readability
Diffstat (limited to 'layouts/partials')
-rw-r--r-- | layouts/partials/pageinfo.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/pageinfo.html b/layouts/partials/pageinfo.html index 2e5d2b9..3eae94c 100644 --- a/layouts/partials/pageinfo.html +++ b/layouts/partials/pageinfo.html @@ -1,2 +1,2 @@ {{ $dateFormat := .Site.Params.dateFormat | default ":date_long" -}} -{{ emojify ":calendar:" | safeHTML }} <time {{ printf "datetime=%q" (.Page.PublishDate | time.Format "2006-01-02T15:04:05-0700") | safeHTMLAttr }}>{{ .Page.PublishDate | time.Format $dateFormat | safeHTML }}</time> | {{ emojify ":stopwatch:" | safeHTML }} <time datetime="PT{{ .ReadingTime }}M">{{ i18n "readingTime" .ReadingTime | safeHTML }}</time>{{ if (.Param (lower (i18n "tags"))) }} | {{ emojify ":label:" | safeHTML }} {{ end }}{{ range $key, $val := (.Param (lower (i18n "tags"))) }}{{ if $key }}, {{ end }}<a class="link" href='{{ relLangURL (lower (i18n "tags")) }}/{{ . | urlize }}/' rel="noreferrer">{{ $val }}</a>{{ end }} +{{ emojify ":calendar:" }} <time {{ printf "datetime=%q" (.Page.PublishDate | time.Format "2006-01-02T15:04:05-0700") | safeHTMLAttr }}>{{ .Page.PublishDate | time.Format $dateFormat | safeHTML }}</time> | {{ emojify ":stopwatch:" }} <time datetime="PT{{ .ReadingTime }}M">{{ i18n "readingTime" .ReadingTime | safeHTML }}</time>{{ if (.Param (lower (i18n "tags"))) }} | {{ emojify ":label:" }} {{ end }}{{ range $key, $val := (.Param (lower (i18n "tags"))) }}{{ if $key }}, {{ end }}<a class="link" href='{{ relLangURL (lower (i18n "tags")) }}/{{ . | urlize }}/' rel="noreferrer">{{ $val }}</a>{{ end }} |