Create render-link.html
This commit is contained in:
8
layouts/_default/_markup/render-link.html
Normal file
8
layouts/_default/_markup/render-link.html
Normal file
@@ -0,0 +1,8 @@
|
||||
<!-- layouts/_default/_markup/render-link.html -->
|
||||
<a href="{{ .Destination | safeURL }}"
|
||||
{{ with .Title }} title="{{ . }}"{{ end }}
|
||||
{{ if strings.HasPrefix .Destination "http" }}
|
||||
target="_blank" rel="nofollow noopener noreferrer"
|
||||
{{ end }}
|
||||
>
|
||||
{{ .Text | safeHTML }}</a>
|
||||
Reference in New Issue
Block a user