|
@@ -9,16 +9,24 @@
|
|
<div class="d-flex">
|
|
<div class="d-flex">
|
|
{{ if .logo }}
|
|
{{ if .logo }}
|
|
|
|
|
|
- {{ $logoImage:= resources.Get .logo}}
|
|
|
|
- {{ if $logoImage }}
|
|
|
|
- {{/* svg don't support "Fit" operation */}}
|
|
|
|
- {{ if ne $logoImage.MediaType.SubType "svg" }}
|
|
|
|
- {{ $logoImage = $logoImage.Fit "24x24" }}
|
|
|
|
- {{ end }}
|
|
|
|
|
|
+ {{ if eq (len (findRE ".*/.*" .logo) ) 0 }}
|
|
|
|
+
|
|
|
|
+ <i style="padding-right: 0.25em" class="{{.logo}} h4"></i>
|
|
|
|
+
|
|
|
|
+ {{ else }}
|
|
|
|
+
|
|
|
|
+ {{ $logoImage:= resources.Get .logo}}
|
|
|
|
+ {{ if $logoImage }}
|
|
|
|
+ {{/* svg don't support "Fit" operation */}}
|
|
|
|
+ {{ if ne $logoImage.MediaType.SubType "svg" }}
|
|
|
|
+ {{ $logoImage = $logoImage.Fit "24x24" }}
|
|
|
|
+ {{ end }}
|
|
|
|
+ <img class="card-img-xs" src="{{ $logoImage.RelPermalink }}" alt="{{ .name }}" />
|
|
|
|
+ {{ end }}
|
|
|
|
+ {{ end }}
|
|
|
|
|
|
- <img class="card-img-xs" src="{{ $logoImage.RelPermalink }}" alt="{{ .name }}" />
|
|
|
|
- {{ end }}
|
|
|
|
{{ end }}
|
|
{{ end }}
|
|
|
|
+
|
|
<h5 class="card-title mb-0">{{ .name }}</h5>
|
|
<h5 class="card-title mb-0">{{ .name }}</h5>
|
|
</div>
|
|
</div>
|
|
<div class="sub-title">
|
|
<div class="sub-title">
|