From 51fb029ca27d67d7cd67352cdede45e5b25868f7 Mon Sep 17 00:00:00 2001 From: Christoph Cullmann Date: Sun, 14 Aug 2022 19:01:21 +0200 Subject: switch back to LoveIt, other theme is deprectated --- themes/LoveIt/layouts/partials/plugin/icon.html | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 themes/LoveIt/layouts/partials/plugin/icon.html (limited to 'themes/LoveIt/layouts/partials/plugin/icon.html') diff --git a/themes/LoveIt/layouts/partials/plugin/icon.html b/themes/LoveIt/layouts/partials/plugin/icon.html new file mode 100644 index 0000000..c5f98db --- /dev/null +++ b/themes/LoveIt/layouts/partials/plugin/icon.html @@ -0,0 +1,13 @@ +{{- with .Class -}} + +{{- 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 -}} + +{{- end -}} -- cgit v1.2.3