diff options
author | Nicholas Johnson <nick@nicksphere.ch> | 2022-09-06 00:00:00 +0000 |
---|---|---|
committer | Nicholas Johnson <nick@nicksphere.ch> | 2022-09-06 00:00:00 +0000 |
commit | 9ccd44c4f6e0c9f0374917b1b4cb878f2eceae080c74f8059078eeb3b21ae634 (patch) | |
tree | 4ce73af718b827634d5a033fd1ea955eb197bd4147be6195edf21e0b2ab82972 /layouts/_default/_markup/render-link.html | |
parent | 823712c8b54dbb7bd7374517c3b00506747672da08861180915b839ca17a021f (diff) | |
download | hugo-theme-journal-9ccd44c4f6e0c9f0374917b1b4cb878f2eceae080c74f8059078eeb3b21ae634.tar.gz hugo-theme-journal-9ccd44c4f6e0c9f0374917b1b4cb878f2eceae080c74f8059078eeb3b21ae634.zip |
Allow link emojis to be turned off per-page
Diffstat (limited to 'layouts/_default/_markup/render-link.html')
-rw-r--r-- | layouts/_default/_markup/render-link.html | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/layouts/_default/_markup/render-link.html b/layouts/_default/_markup/render-link.html index 9a14f8f..fb5a1e3 100644 --- a/layouts/_default/_markup/render-link.html +++ b/layouts/_default/_markup/render-link.html @@ -1 +1,2 @@ -<a href="{{ .Destination | safeURL }}" rel="noreferrer">🔗 {{ .Text | safeHTML }}</a> +{{ $emoji := cond (.Page.Params.nolinkemoji | default false) "" "🔗 " -}} +<a href="{{ .Destination | safeURL }}" rel="noreferrer">{{ $emoji }}{{ .Text | safeHTML }}</a> |