2021-02-18 21:44:01 +01:00
|
|
|
{{- $rel := "" -}}
|
2021-02-18 22:21:36 +01:00
|
|
|
<a href="{{ .Destination | safeURL }}"{{ with .Title }} title="{{ . }}"{{ end }}{{ if (urls.Parse .Destination).Host | or .Newtab }}{{ $rel = "noopener noreferrer" }} target="_blank"{{ end }} rel="{{ $rel }}{{ with .Rel }} {{ . }}{{ end }}"{{ with .Class }} class="{{ . }}"{{ end }}>
|
2021-02-18 21:44:01 +01:00
|
|
|
{{- with .Icon -}}
|
|
|
|
{{- partial "plugin/icon.html" . -}}
|
|
|
|
{{- end -}}
|
|
|
|
{{- with .Content -}}
|
|
|
|
{{- . | safeHTML -}}
|
|
|
|
{{- end -}}
|
|
|
|
</a>
|