mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-12 16:15:12 +00:00
fix: custom icons
This commit is contained in:
1 parent
da6ffe72ba
commit
8fa6800800
1 file changed
+2
-2
@@ -20,10 +20,10 @@
|
||||
{{ with index (index site.Data.icons.hb "icons") $name -}}
|
||||
{{ $icon = . }}
|
||||
{{ else }}
|
||||
{{ with resources.GetMatch (printf "media/icons/%s.svg" (path.Join $pack .name)) }}
|
||||
{{ with resources.GetMatch (path.Join "media" "icons" $pack (printf "%s.svg" $name)) }}
|
||||
{{ $icon = .Content }}
|
||||
{{else}}
|
||||
{{ warnf "The icon `%s.svg` was not found in your `assets/media/icons/%s` folder" .name $pack }}
|
||||
{{ warnf "The icon `%s.svg` was not found in your `assets/media/icons/%s/` folder" $name $pack }}
|
||||
{{ $icon = index (index site.Data.icons.brands "icons") "hugo" }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
Reference in new issue
Block a user