2020-03-17 21:16:04 +08:00
|
|
|
{{- $rel := "" -}}
|
2020-05-28 17:05:37 +08: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 23:42:35 +08:00
|
|
|
{{- partial "plugin/icon.html" . -}}
|
|
|
|
{{- end -}}
|
2020-05-28 17:05:37 +08:00
|
|
|
{{- with .Content -}}
|
2020-02-21 23:42:35 +08:00
|
|
|
{{- . | safeHTML -}}
|
|
|
|
{{- end -}}
|
2022-05-14 02:28:35 +08:00
|
|
|
</a>
|