From 033724cd709402e1da184e60da2da3031d8e119990129baa7ced9f957904e615 Mon Sep 17 00:00:00 2001 From: Nicholas Johnson Date: Fri, 8 Nov 2024 00:00:00 +0000 Subject: Stop safeHTML overuse in emojis for readability --- layouts/404.html | 2 +- layouts/_default/single.html | 2 +- layouts/index.html | 2 +- layouts/partials/pageinfo.html | 2 +- layouts/taxonomy/taxonomy.html | 4 ++-- layouts/term/term.html | 4 ++-- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/layouts/404.html b/layouts/404.html index f3b9742..6100aa9 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -1,6 +1,6 @@ {{ define "main" -}}

{{ i18n "pageNotFound" }}

diff --git a/layouts/_default/single.html b/layouts/_default/single.html index cd80256..1bc79e4 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,6 +1,6 @@ {{ define "main" -}} {{- if (.Page.Params.pageinfo | default true) }}

{{ partial "pageinfo.html" . }}

diff --git a/layouts/index.html b/layouts/index.html index d15d932..398a770 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -7,7 +7,7 @@ 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 }} | {{ emojify ":stopwatch:" | safeHTML }} {{ if (.Param (lower (i18n "tags"))) }} | {{ emojify ":label:" | safeHTML }} {{ end }}{{ range $key, $val := (.Param (lower (i18n "tags"))) }}{{ if $key }}, {{ end }}{{ $val }}{{ end }} +{{ emojify ":calendar:" }} | {{ emojify ":stopwatch:" }} {{ if (.Param (lower (i18n "tags"))) }} | {{ emojify ":label:" }} {{ end }}{{ range $key, $val := (.Param (lower (i18n "tags"))) }}{{ if $key }}, {{ end }}{{ $val }}{{ end }} diff --git a/layouts/taxonomy/taxonomy.html b/layouts/taxonomy/taxonomy.html index 51e00a3..77475de 100644 --- a/layouts/taxonomy/taxonomy.html +++ b/layouts/taxonomy/taxonomy.html @@ -1,11 +1,11 @@ {{ define "main" -}}

{{ .Type | humanize }}

{{ i18n "feeds" }}

-

{{ emojify ":link:" | safeHTML }} {{ i18n "atomFeed" }}

+

{{ emojify ":link:" }} {{ i18n "atomFeed" }}

{{ i18n "list" }}