🚧 optimization other settings.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
{{- $extURL := .Page.Site.Params.exturl.enable }}
|
||||
<a href="{{ .Destination | safeURL }}" title="{{ .Text }}" {{ if strings.HasPrefix .Destination "http" }}rel="noopener external nofollow noreferrer" target="_blank"{{ end }} {{ if $extURL }}class=" exturl"{{ end }}>
|
||||
{{- $extURL := and .Page.Site.Params.exturl.enable (strings.HasPrefix .Destination "http") }}
|
||||
<a href="{{ .Destination | safeURL }}" title="{{ .Text }}" {{ if $extURL }}rel="noopener external nofollow noreferrer" target="_blank" class=" exturl"{{ end }}>
|
||||
{{ .Text | safeHTML }}
|
||||
{{- if and $extURL .Page.Site.Params.exturl.icon }}
|
||||
<i class="fa fa-external-link-alt"></i>
|
||||
|
||||
Reference in New Issue
Block a user