From 91d9491fb2b4c9c83c116f3703764b1a009c158be10427a8f10575c908661a4e Mon Sep 17 00:00:00 2001 From: Nicholas Johnson Date: Sat, 3 Sep 2022 00:00:00 +0000 Subject: Add link emoji to give links some style --- layouts/_default/_markup/render-link.html | 2 +- layouts/_default/single.gmi | 2 +- layouts/_default/single.html | 2 +- layouts/index.gmi | 2 +- layouts/index.html | 2 +- layouts/partials/metadata.gmi | 4 ++-- layouts/partials/metadata.html | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/layouts/_default/_markup/render-link.html b/layouts/_default/_markup/render-link.html index 6f02037..9a14f8f 100644 --- a/layouts/_default/_markup/render-link.html +++ b/layouts/_default/_markup/render-link.html @@ -1 +1 @@ -{{ .Text | safeHTML }} +🔗 {{ .Text | safeHTML }} diff --git a/layouts/_default/single.gmi b/layouts/_default/single.gmi index 1347179..ae4fc3c 100644 --- a/layouts/_default/single.gmi +++ b/layouts/_default/single.gmi @@ -1,5 +1,5 @@ {{ define "main" }} -=> ./{{ replaceRE ".+?/" "../" .RelPermalink | safeURL }} Return to homepage +=> ./{{ replaceRE ".+?/" "../" .RelPermalink | safeURL }} 🔗 Return to homepage {{ $content := .RawContent }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 2aab5a7..83ed937 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,6 +1,6 @@ {{ define "main" -}}
{{ .Content -}} diff --git a/layouts/index.gmi b/layouts/index.gmi index 9c58e8f..b1b7720 100644 --- a/layouts/index.gmi +++ b/layouts/index.gmi @@ -4,7 +4,7 @@ ## Navigation Links {{ range .Site.Menus.main -}} -=> .{{ .URL }} {{ .Name | safeHTML }} +=> .{{ .URL }} 🔗 {{ .Name | safeHTML }} {{ end }} ## Journal Entries {{ partial "metadata.gmi" . }}{{ end }} diff --git a/layouts/index.html b/layouts/index.html index c98c1f2..0ad05b1 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -6,7 +6,7 @@ diff --git a/layouts/partials/metadata.gmi b/layouts/partials/metadata.gmi index f5cca3b..693ac32 100644 --- a/layouts/partials/metadata.gmi +++ b/layouts/partials/metadata.gmi @@ -2,10 +2,10 @@ {{- range first $entriesMinusOne (where .Site.RegularPages.ByTitle "Section" "entry").ByPublishDate.Reverse }} {{- $dateFormat := .Site.Params.dateFormat | default "2 Jan 2006" }} {{- .PublishDate.Format $dateFormat | safeHTML }} - {{ .ReadingTime | safeHTML }} minute read -=> .{{ .RelPermalink }} {{ .Title | safeHTML }} +=> .{{ .RelPermalink }} 🔗 {{ .Title | safeHTML }} {{ end }} {{- range last 1 (where .Site.RegularPages.ByTitle "Section" "entry").ByPublishDate.Reverse }} {{- $dateFormat := .Site.Params.dateFormat | default "2 Jan 2006" }} {{- .PublishDate.Format $dateFormat | safeHTML }} - {{ .ReadingTime | safeHTML }} minute read -=> .{{ .RelPermalink }} {{ .Title | safeHTML }}{{ end }} +=> .{{ .RelPermalink }} 🔗 {{ .Title | safeHTML }}{{ end }} diff --git a/layouts/partials/metadata.html b/layouts/partials/metadata.html index 92c0b83..35385a1 100644 --- a/layouts/partials/metadata.html +++ b/layouts/partials/metadata.html @@ -3,7 +3,7 @@ {{ end }} \ No newline at end of file -- cgit v1.2.3