LoveIt/layouts/partials/plugin/link.html

9 lines
355 B
HTML
Raw Normal View History

2020-02-27 13:14:40 +01:00
<a href="{{ .href | safeURL }}"{{ with .title }} title="{{ . }}"{{ end }}{{ if strings.HasPrefix .href "http" }} target="_blank"{{ end }} rel="noopener noreffer{{ with .rel }} {{ . }}{{ end }}">
{{- 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 -}}
</a>