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 | afb2d1be3159702479487ad6b719ac4d974c149d92903c2968692c25db28df8a (patch) | |
tree | 14b565a80f93f5ef2dc197bf58fd2ab7ba1432bdb345ce4f80ee6b1ee473cce4 | |
parent | c2e8574b9fc128fe48df5103188e7272323a34d4b5f5ee447f48a474d66f2d70 (diff) | |
download | hugo-theme-journal-afb2d1be3159702479487ad6b719ac4d974c149d92903c2968692c25db28df8a.tar.gz hugo-theme-journal-afb2d1be3159702479487ad6b719ac4d974c149d92903c2968692c25db28df8a.zip |
Remove unnecessary safeHTML calls for readability
-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 3eae94c..4c0e855 100644 --- a/layouts/partials/pageinfo.html +++ b/layouts/partials/pageinfo.html @@ -1,2 +1,2 @@ {{ $dateFormat := .Site.Params.dateFormat | default ":date_long" -}} -{{ 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 }} +{{ emojify ":calendar:" }} <time {{ printf "datetime=%q" (.Page.PublishDate | time.Format "2006-01-02T15:04:05-0700") | safeHTMLAttr }}>{{ .Page.PublishDate | time.Format $dateFormat }}</time> | {{ emojify ":stopwatch:" }} <time datetime="PT{{ .ReadingTime }}M">{{ i18n "readingTime" .ReadingTime }}</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 }} |