Omphaloskepsis-2/layouts/_default/_markup/render-link.html

2 lines
243 B
HTML
Raw Normal View History

2022-11-11 05:48:02 +00:00
{{- with 1 -}}{{- end -}}<a href="{{ .Destination | safeURL }}"{{ with .Title}} title="{{ . }}"{{ end }}{{ if strings.HasPrefix .Destination "http" }} target="_blank" rel="noopener"{{ end }}>{{ .Text | safeHTML }}</a>{{- with 1 -}}{{- end -}}