From 96c525d6569494d08b1de069e794ae46d63579b2 Mon Sep 17 00:00:00 2001 From: Shreya Malviya Date: Mon, 27 Sep 2021 11:13:32 +0530 Subject: [PATCH] docs: Add upward right arrow icon to external links Taken from https://www.jayeless.net/2021/08/hugo-mark-external-links.html --- docs/layouts/_default/_markup/render-link.html | 1 + 1 file changed, 1 insertion(+) create mode 100644 docs/layouts/_default/_markup/render-link.html diff --git a/docs/layouts/_default/_markup/render-link.html b/docs/layouts/_default/_markup/render-link.html new file mode 100644 index 000000000..8581270fa --- /dev/null +++ b/docs/layouts/_default/_markup/render-link.html @@ -0,0 +1 @@ +{{ .Text | safeHTML }}{{ if strings.HasPrefix .Destination "http" }} external link{{ end }}