Add method for creating links which open in new tabs.
This commit is contained in:
4
layouts/shortcodes/external-link.html
Normal file
4
layouts/shortcodes/external-link.html
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
{{ $text := .Get "text" | default (.Get 0)
|
||||||
|
}}{{ $url := .Get "url" | default (.Get 1)
|
||||||
|
}}
|
||||||
|
<a href="{{ $url }}" target="_blank" rel="noopener noreferrer">{{ $text }}</a>
|
||||||
Reference in New Issue
Block a user