summaryrefslogtreecommitdiff
path: root/layouts/_shortcodes/newtab.html
diff options
context:
space:
mode:
authorArne Rief <riearn@proton.me>2025-09-22 18:04:09 +0200
committerArne Rief <riearn@proton.me>2025-09-22 18:04:09 +0200
commit6b5ac43b0eb9f799220783e98b5961192666b755 (patch)
treeea39cc2c610ee033613efe3500866494c4bd0778 /layouts/_shortcodes/newtab.html
parenta57a8f991a2a5960fc886aa8bfcfca9719cecfda (diff)
Descrlist shortcodeHEADmaster
Diffstat (limited to 'layouts/_shortcodes/newtab.html')
-rw-r--r--layouts/_shortcodes/newtab.html7
1 files changed, 7 insertions, 0 deletions
diff --git a/layouts/_shortcodes/newtab.html b/layouts/_shortcodes/newtab.html
index b06fb2d..3f3fe75 100644
--- a/layouts/_shortcodes/newtab.html
+++ b/layouts/_shortcodes/newtab.html
@@ -1,3 +1,10 @@
+{{- /*
+ Link that opens a new tab; protects current window & hides referrer URL
+
+ @context {string} href: target URL
+
+ @example: {{< newtab href="https://some-site.com" >}}Some text to be displayed{{< /newtab >}}
+*/ -}}
<a href="{{ .Get "href" }}" target="_blank" rel="noopener noreferrer">
{{ .Inner }}
</a>