mirror of
https://github.com/dillonzq/LoveIt.git
synced 2024-11-28 19:22:50 +01:00
9 lines
No EOL
460 B
HTML
9 lines
No EOL
460 B
HTML
{{- $rel := "" -}}
|
|
<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 -}}
|
|
{{- partial "plugin/icon.html" . -}}
|
|
{{- end -}}
|
|
{{- with .Content -}}
|
|
{{- . | safeHTML -}}
|
|
{{- end -}}
|
|
</a> |