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