mirror of
https://github.com/dillonzq/LoveIt.git
synced 2024-11-15 03:16:30 +01:00
10 lines
423 B
HTML
10 lines
423 B
HTML
|
{{- $href := index . "href" -}}
|
||
|
<a href="{{ $href | safeURL }}"{{ with index . "title" }} title="{{ . }}"{{ end }}{{ if strings.HasPrefix $href "http" }} target="_blank"{{ end }} rel="noopener noreffer{{ with index . `rel` }} {{ . }}{{ end }}">
|
||
|
{{- with index . "icon" -}}
|
||
|
{{- partial "plugin/icon.html" . -}}
|
||
|
{{- end -}}
|
||
|
{{- with index . "content" -}}
|
||
|
{{- . | safeHTML -}}
|
||
|
{{- end -}}
|
||
|
</a>
|