aboutsummaryrefslogtreecommitdiff
path: root/layouts/_default/_markup/render-link.html
blob: 1d39360116f0b299b954a65243eebbf4b35089857a21d31b393e709d4f5407d0 (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 }}"{{ if strings.HasPrefix .Destination "http" }} rel="noreferrer"{{ end }}>{{ .Text | safeHTML }}</a>