MitseaBlog/themes/hugo-theme-stack/layouts/_default/_markup/render-link.html

3 lines
216 B
HTML
Raw Normal View History

2022-10-11 17:34:41 +08:00
<a class="link" href="{{ .Destination | safeURL }}" {{ with .Title}} title="{{ . }}"
{{ end }}{{ if strings.HasPrefix .Destination "http" }} target="_blank" rel="noopener"
{{ end }}>{{ .Text | safeHTML }}</a>