mirror of
https://github.com/dillonzq/LoveIt.git
synced 2024-11-15 19:36:20 +01:00
c2197b7411
* replace forkawesome and iconfont with simple icons * add more configs for social
9 lines
No EOL
446 B
HTML
9 lines
No EOL
446 B
HTML
{{- $rel := "" -}}
|
|
<a href="{{ .href | safeURL }}"{{ with .title }} title="{{ . }}"{{ end }}{{ if (urls.Parse .href).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> |