Dotawo/themes/sandpoints/layouts/_default/_markup/render-link.html

3 lines
283 B
HTML
Raw Normal View History

2020-10-28 22:59:55 +01:00
{{ .Page.Scratch.Add "urls" (slice .Destination) }}
<a href="{{ .Destination | safeURL }}"{{ with .Title}} title="{{ . }}"{{ end }}{{ if strings.HasPrefix .Destination "http" }} target="_blank" rel="noopener"{{ end }}><span class="sup">www</span><i>{{ .Text | safeHTML }}</i></a>