diff options
author | Nicholas Johnson <nick@nicksphere.ch> | 2022-11-10 00:00:00 +0000 |
---|---|---|
committer | Nicholas Johnson <nick@nicksphere.ch> | 2022-11-10 00:00:00 +0000 |
commit | 6ad63397418cc25be478fe4bfa3a8f85909432c439f811ad79a7c48c23ac26e7 (patch) | |
tree | c7a7e6b1722de1a25e167647cae0207bdc4ed8445d755a36ce1795199243e32d /layouts/partials | |
parent | 3123c9eb98359ca972c797dbd7561c97fadac9dc3d2b5fcc4a9e33ac836fb982 (diff) | |
download | hugo-theme-journal-6ad63397418cc25be478fe4bfa3a8f85909432c439f811ad79a7c48c23ac26e7.tar.gz hugo-theme-journal-6ad63397418cc25be478fe4bfa3a8f85909432c439f811ad79a7c48c23ac26e7.zip |
Replace emojis with the emojify processor
This increases code accessibility.
Diffstat (limited to 'layouts/partials')
-rw-r--r-- | layouts/partials/metadata.gmi | 5 | ||||
-rw-r--r-- | layouts/partials/metadata.html | 2 | ||||
-rw-r--r-- | layouts/partials/pageinfo | 2 |
3 files changed, 5 insertions, 4 deletions
diff --git a/layouts/partials/metadata.gmi b/layouts/partials/metadata.gmi index 368c3d3..f175f9e 100644 --- a/layouts/partials/metadata.gmi +++ b/layouts/partials/metadata.gmi @@ -1,9 +1,10 @@ {{ $entriesMinusOne := sub (len (where .Site.RegularPages.ByTitle "Section" "entry").ByPublishDate.Reverse) 1 }} {{- range first $entriesMinusOne (where .Site.RegularPages.ByTitle "Section" "entry").ByPublishDate.Reverse }} {{- partial "pageinfo" . }} -=> .{{ .RelPermalink }} 🔗 {{ .Title | safeHTML }} +=> .{{ .RelPermalink }} {{ emojify ":link:" }} {{ .Title | safeHTML }} {{ end }} + {{- range last 1 (where .Site.RegularPages.ByTitle "Section" "entry").ByPublishDate.Reverse }} {{- partial "pageinfo" . }} -=> .{{ .RelPermalink }} 🔗 {{ .Title | safeHTML }}{{ end }} +=> .{{ .RelPermalink }} {{ emojify ":link:" }} {{ .Title | safeHTML }}{{ end }}
\ No newline at end of file diff --git a/layouts/partials/metadata.html b/layouts/partials/metadata.html index 844ea12..acfd2d7 100644 --- a/layouts/partials/metadata.html +++ b/layouts/partials/metadata.html @@ -2,7 +2,7 @@ <article> <header> <p>{{ partial "pageinfo" . }}<br> - <a href="{{ .RelPermalink }}" rel="noreferrer">🔗 {{ .Title }}</a></p> + <a href="{{ .RelPermalink }}" rel="noreferrer">{{ emojify ":link:" }} {{ .Title }}</a></p> </header> </article> {{ end }}
\ No newline at end of file diff --git a/layouts/partials/pageinfo b/layouts/partials/pageinfo index c512b88..269b04e 100644 --- a/layouts/partials/pageinfo +++ b/layouts/partials/pageinfo @@ -1,2 +1,2 @@ {{ $dateFormat := .Site.Params.dateFormat | default "2 Jan 2006" -}} -📆 {{ .Page.PublishDate.Format $dateFormat | safeHTML }} | ⏱️ {{ .Page.ReadingTime | safeHTML }} minute read
\ No newline at end of file +{{ emojify ":calendar:" }} {{ .Page.PublishDate.Format $dateFormat | safeHTML }} | {{ emojify ":stopwatch:" }} {{ .Page.ReadingTime | safeHTML }} minute read
\ No newline at end of file |