From 1f150c43cafe1074b3fe24bf1472a49b8bcf8ff583bdc6f7098e266f6e1e84c9 Mon Sep 17 00:00:00 2001 From: Nicholas Johnson Date: Fri, 24 Feb 2023 00:00:00 +0000 Subject: Exclude link emojis from links --- layouts/_default/_markup/render-link.html | 2 +- layouts/_default/single.html | 2 +- layouts/_default/taxonomy.html | 2 +- layouts/index.html | 2 +- layouts/partials/metadata.html | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) (limited to 'layouts') diff --git a/layouts/_default/_markup/render-link.html b/layouts/_default/_markup/render-link.html index 0db1d0d..9e7786d 100644 --- a/layouts/_default/_markup/render-link.html +++ b/layouts/_default/_markup/render-link.html @@ -1,2 +1,2 @@ {{ $emoji := cond (and (not (.Page.Params.makerefs | default true)) (.Page.Params.showlinkemoji | default true)) (emojify ":link: ") "" -}} -{{ $emoji }}{{ .Text | safeHTML }} \ No newline at end of file +{{ $emoji }}{{ .Text | safeHTML }} \ No newline at end of file diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 07333ea..d5e9547 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" . }}

{{ end }} diff --git a/layouts/_default/taxonomy.html b/layouts/_default/taxonomy.html index 28147b9..f17a06d 100644 --- a/layouts/_default/taxonomy.html +++ b/layouts/_default/taxonomy.html @@ -3,7 +3,7 @@

All {{ .Type }}

diff --git a/layouts/index.html b/layouts/index.html index 72b0e05..78fd0d5 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -6,7 +6,7 @@ diff --git a/layouts/partials/metadata.html b/layouts/partials/metadata.html index ed41518..f96af41 100644 --- a/layouts/partials/metadata.html +++ b/layouts/partials/metadata.html @@ -1,8 +1,8 @@ {{ range (where .Site.RegularPages.ByTitle "Section" "entry").ByPublishDate.Reverse -}}
-

{{ partial "pageinfo" . }}
- {{ emojify ":link:" }} {{ .Title }}

+

{{ partial "pageinfo.html" . }}
+ {{ emojify ":link:" }} {{ .Title }}

{{ end }} -- cgit v1.2.3