2020-03-17 14:16:04 +01:00
|
|
|
{{- $rel := "" -}}
|
|
|
|
<a href="{{ .href | safeURL }}"{{ with .title }} title="{{ . }}"{{ end }}{{ if strings.HasPrefix .href "http" }}{{ $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>
|