2020-03-17 14:16:04 +01:00
|
|
|
{{- $rel := "" -}}
|
2020-05-28 11:05:37 +02:00
|
|
|
<a href="{{ .Destination | safeURL }}"{{ with .Title }} title="{{ . }}"{{ end }}{{ if (urls.Parse .Destination).Host | or .Newtab }}{{ $rel = "noopener noreffer" }} target="_blank"{{ end }} rel="{{ $rel }}{{ with .Rel }} {{ . }}{{ end }}"{{ with .Class }} class="{{ . }}"{{ end }}>
|
|
|
|
{{- with .Icon -}}
|
2020-02-21 16:42:35 +01:00
|
|
|
{{- partial "plugin/icon.html" . -}}
|
|
|
|
{{- end -}}
|
2020-05-28 11:05:37 +02:00
|
|
|
{{- with .Content -}}
|
2020-02-21 16:42:35 +01:00
|
|
|
{{- . | safeHTML -}}
|
|
|
|
{{- end -}}
|
2022-05-13 20:28:35 +02:00
|
|
|
</a>
|