From ab8d28988e0e454807b2883eab26ee82873b5e6f Mon Sep 17 00:00:00 2001 From: George Cushen Date: Tue, 13 Apr 2021 20:22:02 +0100 Subject: [PATCH] feat(widget): Experience - add brand logo error msg Close #1781 --- wowchemy/layouts/partials/widgets/experience.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wowchemy/layouts/partials/widgets/experience.html b/wowchemy/layouts/partials/widgets/experience.html index 1e3d3fd8..da288ed0 100644 --- a/wowchemy/layouts/partials/widgets/experience.html +++ b/wowchemy/layouts/partials/widgets/experience.html @@ -30,9 +30,10 @@
{{- if .company_logo}} + {{- $svg_icon := resources.Get (printf "media/icons/brands/%s.svg" .company_logo) -}} + {{ if not $svg_icon }}{{ errorf "Brand logo not found at `media/icons/brands/%s.svg`" .company_logo }}{{end}}
- {{- $svg_icon := resources.Get (printf "media/icons/brands/%s.svg" .company_logo) -}} {{- with .company_url}}{{end -}} {{.company | plainify}} {{- with .company_url}}{{end -}}