💄 Add extend URL display style.
This commit is contained in:
7
layouts/_default/_markup/render-link.html
Normal file
7
layouts/_default/_markup/render-link.html
Normal file
@@ -0,0 +1,7 @@
|
||||
{{- $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 }}>
|
||||
{{ .Text | safeHTML }}
|
||||
{{- if and $extURL .Page.Site.Params.exturl.icon }}
|
||||
<i class="fa fa-external-link-alt"></i>
|
||||
{{- end }}
|
||||
</a>
|
||||
Reference in New Issue
Block a user