2020-03-17 14:16:04 +01:00
|
|
|
{{- $rel := "" -}}
|
2020-04-24 13:04:37 +02:00
|
|
|
<a href="{{ .href | safeURL }}"{{ with .title }} title="{{ . }}"{{ end }}{{ if (urls.Parse .href).Host | or .newtab }}{{ $rel = "noopener noreffer" }} target="_blank"{{ end }} rel="{{ $rel }}{{ with .rel }} {{ . }}{{ end }}"{{ with .class }} class="{{ . }}"{{ end }}>
|
2020-02-27 13:14:40 +01:00
|
|
|
{{- with .icon -}}
|
2020-02-21 16:42:35 +01:00
|
|
|
{{- partial "plugin/icon.html" . -}}
|
|
|
|
{{- end -}}
|
2020-02-27 13:14:40 +01:00
|
|
|
{{- with .content -}}
|
2020-02-21 16:42:35 +01:00
|
|
|
{{- . | safeHTML -}}
|
|
|
|
{{- end -}}
|
2020-03-17 14:16:04 +01:00
|
|
|
</a>
|