use LoveIt theme, self hosted
This commit is contained in:
parent
bcafaafff8
commit
e9ec93a471
1973 changed files with 54578 additions and 15688 deletions
13
themes/LoveIt/layouts/partials/plugin/icon.html
Normal file
13
themes/LoveIt/layouts/partials/plugin/icon.html
Normal file
|
@ -0,0 +1,13 @@
|
|||
{{- with .Class -}}
|
||||
<i class="{{ . }}"></i>
|
||||
{{- else -}}
|
||||
{{- $src := .Src -}}
|
||||
{{- with .Simpleicons -}}
|
||||
{{- $prefix := $.Prefix | default "lib/simple-icons/icons" | strings.TrimSuffix "/" -}}
|
||||
{{- $src = printf "%v/%v.svg" $prefix . -}}
|
||||
{{- end -}}
|
||||
{{- if (urls.Parse $src).Host | not -}}
|
||||
{{- $src = (resources.Get $src | minify).RelPermalink -}}
|
||||
{{- end -}}
|
||||
<i data-svg-src="{{ $src }}"></i>
|
||||
{{- end -}}
|
Loading…
Add table
Add a link
Reference in a new issue