diff options
author | Nicholas Johnson <nick@nicholasjohnson.ch> | 2023-02-24 00:00:00 +0000 |
---|---|---|
committer | Nicholas Johnson <nick@nicholasjohnson.ch> | 2023-02-24 00:00:00 +0000 |
commit | 1f150c43cafe1074b3fe24bf1472a49b8bcf8ff583bdc6f7098e266f6e1e84c9 (patch) | |
tree | 46812eb780edc7aa6ba2ea0f5420b09f95fc8e1dff35e4aaaa72ef95c04acf89 /layouts/_default | |
parent | f02f6b0db09299666d78ae21243b7e919a275edb95458f33404c9eaff3aa92be (diff) | |
download | hugo-theme-journal-1f150c43cafe1074b3fe24bf1472a49b8bcf8ff583bdc6f7098e266f6e1e84c9.tar.gz hugo-theme-journal-1f150c43cafe1074b3fe24bf1472a49b8bcf8ff583bdc6f7098e266f6e1e84c9.zip |
Exclude link emojis from links
Diffstat (limited to 'layouts/_default')
-rw-r--r-- | layouts/_default/_markup/render-link.html | 2 | ||||
-rw-r--r-- | layouts/_default/single.html | 2 | ||||
-rw-r--r-- | layouts/_default/taxonomy.html | 2 |
3 files changed, 3 insertions, 3 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: ") "" -}} -<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:" }} <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:" }} <a class="link" href="{{ .RelPermalink }}" rel="noreferrer">{{ .Title }}</a></li> {{- end }} </ul> </main> |