blob: 8fb3c2646ab62a1fe82a2fec87988a303e1a01dfc0d42df583b06fbbaa325694 (
plain)
1
2
3
|
{{ $emoji := cond (and (not (.Page.Params.makerefs | default true)) (.Page.Params.showlinkemoji | default true)) (emojify ":link: ") "" -}}
{{ $isExternalLink := (urls.Parse .Destination).IsAbs -}}
{{ $emoji }}<a class="link {{ if $isExternalLink }}link--external{{ else }}link--internal{{ end }}" href="{{ .Destination | safeURL }}"{{ with .Title }} title="{{ . }}"{{ end }} rel="{{ if $isExternalLink }}external {{ end }}noreferrer">{{ .Text }}</a>
|