From 3cb96be5c628d7548c4e18c57ac755d50f5c9de2 Mon Sep 17 00:00:00 2001 From: George Cushen Date: Thu, 14 May 2020 23:46:31 +0100 Subject: [PATCH] feat: rename custom icon pack from svg to custom # To use custom SVG icons. # Place custom SVG icon in `assets/images/icon-pack/`, creating folders if necessary. [[feature]] icon = "beach-sunset" icon_pack = "custom" name = "Surfing" description = "90%" See #1692 --- exampleSite/content/home/skills.md | 2 +- layouts/partials/widgets/featurette.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/exampleSite/content/home/skills.md b/exampleSite/content/home/skills.md index 80109c7a..e7d9ca78 100644 --- a/exampleSite/content/home/skills.md +++ b/exampleSite/content/home/skills.md @@ -43,7 +43,7 @@ subtitle = "" # Place custom SVG icon in `assets/images/icon-pack/`, creating folders if necessary. # [[feature]] # icon = "beach-sunset" -# icon_pack = "svg" +# icon_pack = "custom" # name = "Surfing" # description = "90%" diff --git a/layouts/partials/widgets/featurette.html b/layouts/partials/widgets/featurette.html index 1573edac..56df3c03 100644 --- a/layouts/partials/widgets/featurette.html +++ b/layouts/partials/widgets/featurette.html @@ -26,7 +26,7 @@
{{- if eq $pack "emoji" -}} {{- . | emojify -}} - {{- else if eq $pack "svg" -}} + {{- else if eq $pack "custom" -}} {{- $svg_icon := resources.Get (printf "images/icon-pack/%s.svg" .) -}} {{- if $svg_icon -}}{{.}}{{- end -}} {{- else -}}