summaryrefslogtreecommitdiff
path: root/layouts/_default/_markup/render-link.html
blob: 5ffb8762f2a9e64a49eea0660b609c4944f425855b1f6ed2058505e56d190906 (plain)
1
2
{{ $emoji := cond (and (not (.Page.Params.makerefs | default true)) (.Page.Params.showlinkemoji | default true)) (emojify ":link: ") "" -}}
{{ $emoji }}<a class="link" href="{{ .Destination | safeURL }}"{{ with .Title }} title="{{ . }}"{{ end }}{{ if strings.HasPrefix .Destination "http" }} rel="noreferrer"{{ end }}>{{ .Text | safeHTML }}</a>