diff --git a/layouts/partials/init/index.html b/layouts/partials/init/index.html
index 944c6cf2..178a5437 100644
--- a/layouts/partials/init/index.html
+++ b/layouts/partials/init/index.html
@@ -1,4 +1,4 @@
-{{- .Scratch.Set "version" "v0.3.10-5e1a7845" -}}
+{{- .Scratch.Set "version" "v0.3.10-5aaacec0" -}}
{{- .Scratch.Set "this" dict -}}
{{- partial "init/detection-env.html" . -}}
diff --git a/layouts/partials/plugin/icon.html b/layouts/partials/plugin/icon.html
index 10aa4ed1..f71efa75 100644
--- a/layouts/partials/plugin/icon.html
+++ b/layouts/partials/plugin/icon.html
@@ -6,8 +6,20 @@
{{- $prefix := $.Prefix | default "lib/simple-icons/icons" | strings.TrimSuffix "/" -}}
{{- $src = printf "%v/%v.svg" $prefix . -}}
{{- end -}}
+
+ {{ if not $src }}
+ {{- errorf "Icon src is missing" -}}
+ {{- end -}}
+
{{- if (urls.Parse $src).Host | not -}}
- {{- $src = (resources.Get $src | minify).RelPermalink -}}
+ {{- $resource := resources.Get $src | minify -}}
+ {{ if not $resource }}
+ {{- errorf "Icon does not exist %v" $src -}}
+ {{- end -}}
+ {{- $resource := $resource.Content -}}
+ {{- $resource | replaceRE `