all repos — blog @ 5f329ec086cbf1bb1ba4fe8513ee5477306d14ec

Code and content for 5ika.ch

layouts/_default/_markup/render-link.html (view raw)

1{{- $u := urls.Parse .Destination -}}
2<a href="{{ .Destination | safeURL }}"  {{- with .Title }} title="{{ . }}"{{ end -}}
3  {{- if $u.IsAbs }} target="_blank"{{ end -}}
4>
5  {{- with .Text | safeHTML }}{{ . }}{{ end -}}
6</a>