mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-13 06:14:48 +00:00
1 parent
153cf5b780
commit
ab8d28988e
1 file changed
+2
-1
@@ -30,9 +30,10 @@
|
||||
<div class="card-body">
|
||||
|
||||
{{- 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}}
|
||||
<div class="d-flex align-content-start">
|
||||
<div class="mr-2 mb-2">
|
||||
{{- $svg_icon := resources.Get (printf "media/icons/brands/%s.svg" .company_logo) -}}
|
||||
{{- with .company_url}}<a href="{{.}}" target="_blank" rel="noopener">{{end -}}
|
||||
<img src="{{ $svg_icon.RelPermalink }}" width="56px" height="56px" alt="{{.company | plainify}}">
|
||||
{{- with .company_url}}</a>{{end -}}
|
||||
|
||||
Reference in new issue
Block a user