diff options
| author | Arne Rief <riearn@proton.me> | 2025-09-22 18:04:09 +0200 |
|---|---|---|
| committer | Arne Rief <riearn@proton.me> | 2025-09-22 18:04:09 +0200 |
| commit | 6b5ac43b0eb9f799220783e98b5961192666b755 (patch) | |
| tree | ea39cc2c610ee033613efe3500866494c4bd0778 /layouts/_shortcodes/newtab.html | |
| parent | a57a8f991a2a5960fc886aa8bfcfca9719cecfda (diff) | |
Diffstat (limited to 'layouts/_shortcodes/newtab.html')
| -rw-r--r-- | layouts/_shortcodes/newtab.html | 7 |
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> |
