mirror of
https://github.com/dillonzq/LoveIt.git
synced 2024-11-26 16:46:19 +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> |