aboutsummaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authorNicholas Johnson <nick@nicholasjohnson.ch>2023-02-24 00:00:00 +0000
committerNicholas Johnson <nick@nicholasjohnson.ch>2023-02-24 00:00:00 +0000
commit1f150c43cafe1074b3fe24bf1472a49b8bcf8ff583bdc6f7098e266f6e1e84c9 (patch)
tree46812eb780edc7aa6ba2ea0f5420b09f95fc8e1dff35e4aaaa72ef95c04acf89 /layouts
parentf02f6b0db09299666d78ae21243b7e919a275edb95458f33404c9eaff3aa92be (diff)
downloadhugo-theme-journal-1f150c43cafe1074b3fe24bf1472a49b8bcf8ff583bdc6f7098e266f6e1e84c9.tar.gz
hugo-theme-journal-1f150c43cafe1074b3fe24bf1472a49b8bcf8ff583bdc6f7098e266f6e1e84c9.zip
Exclude link emojis from links
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/_markup/render-link.html2
-rw-r--r--layouts/_default/single.html2
-rw-r--r--layouts/_default/taxonomy.html2
-rw-r--r--layouts/index.html2
-rw-r--r--layouts/partials/metadata.html4
5 files changed, 6 insertions, 6 deletions
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:&nbsp;") "" -}}
-<a class="link" href="{{ .Destination | safeURL }}" rel="noreferrer">{{ $emoji }}{{ .Text | safeHTML }}</a> \ No newline at end of file
+{{ $emoji }}<a class="link" href="{{ .Destination | safeURL }}" rel="noreferrer">{{ .Text | safeHTML }}</a> \ 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" -}}
<nav>
- <p><a class="link" href="/" rel="noreferrer">{{ emojify ":link:" }} Return to homepage</a></p>
+ <p>{{ emojify ":link:" }}&nbsp;<a class="link" href="/" rel="noreferrer">Return to homepage</a></p>
</nav>
{{- if (.Page.Params.pageinfo | default true) }}
<p>{{ partial "pageinfo" . }}</p>{{ 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 @@
<h1>All {{ .Type }}</h1>
<ul class="list">
{{- range .Data.Pages }}
- <li class="list__item"><a class="link" href="{{ .RelPermalink }}" rel="noreferrer">{{ emojify ":link:" }} {{ .Title }}</a></li>
+ <li class="list__item">{{ emojify ":link:" }}&nbsp;<a class="link" href="{{ .RelPermalink }}" rel="noreferrer">{{ .Title }}</a></li>
{{- end }}
</ul>
</main>
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 @@
<nav>
<ul class="list">
{{- range .Site.Menus.main }}
- <li class="list__item"><a class="link" href="{{ .URL }}" rel="noreferrer">{{ emojify ":link:" }} {{ .Name }}</a></li>
+ <li class="list__item">{{ emojify ":link:" }}&nbsp;<a class="link" href="{{ .URL }}" rel="noreferrer">{{ .Name }}</a></li>
{{- end }}
</ul>
</nav>
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 -}}
<article>
<header>
- <p>{{ partial "pageinfo" . }}<br>
- <a class="link" href="{{ .RelPermalink }}" rel="noreferrer">{{ emojify ":link:" }} {{ .Title }}</a></p>
+ <p>{{ partial "pageinfo.html" . }}<br>
+ {{ emojify ":link:" }}&nbsp;<a class="link" href="{{ .RelPermalink }}" rel="noreferrer">{{ .Title }}</a></p>
</header>
</article>
{{ end }}