Allow disabling external-links-in-new-tab
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
This commit is contained in:
parent
6921dbbd08
commit
8b6874ec75
|
@ -21,7 +21,7 @@
|
||||||
{{- with $scratch.Get "class" -}}
|
{{- with $scratch.Get "class" -}}
|
||||||
class="{{ . }}"
|
class="{{ . }}"
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- if $isExternal -}}
|
{{- if (and site.Params.externalLinksInNewTab $isExternal) -}}
|
||||||
target="_blank" rel="noopener noreferrer"
|
target="_blank" rel="noopener noreferrer"
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
>
|
>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user