|
@@ -4,34 +4,48 @@
|
|
|
>
|
|
|
<div class="card mt-1">
|
|
|
<div class="card">
|
|
|
- <a class="card-header" href="{{ if .repo }}{{ .repo }}{{ else if .url }}{{ .url }}{{ else }}javascript:void(0){{ end }}" {{ if or .repo .url }}target="_blank" rel="noopener"{{ end }}>
|
|
|
- <div>
|
|
|
- <div class="d-flex">
|
|
|
- {{ if .logo }}
|
|
|
+ <a href="{{ if .repo }}{{ .repo }}{{ else if .url }}{{ .url }}{{ else }}javascript:void(0){{ end }}" {{ if or .repo .url }}target="_blank" rel="noopener"{{ end }}>
|
|
|
+ {{ if .image }}
|
|
|
+ <div class="card-head">
|
|
|
+ {{ $imageImage:= resources.Get .image}}
|
|
|
+ {{ if $imageImage }}
|
|
|
+ {{/* svg don't support "Fit" operation */}}
|
|
|
+ {{ if ne $imageImage.MediaType.SubType "svg" }}
|
|
|
+ {{ $imageImage = $imageImage.Fit "1000x1000" }}
|
|
|
+ {{ end }}
|
|
|
+ <img class="card-img-top" src="{{ $imageImage.RelPermalink }}" alt="{{ .name }}" />
|
|
|
+ {{ end }}
|
|
|
+ </div>
|
|
|
+ {{ end }}
|
|
|
+ <div class="card-header">
|
|
|
+ <div>
|
|
|
+ <div class="d-flex">
|
|
|
+ {{ if .logo }}
|
|
|
|
|
|
- {{ if eq (len (findRE ".*/.*" .logo) ) 0 }}
|
|
|
+ {{ if eq (len (findRE ".*/.*" .logo) ) 0 }}
|
|
|
|
|
|
- <i style="padding-right: 0.25em" class="{{.logo}} h4"></i>
|
|
|
+ <i style="padding-right: 0.25em" class="{{.logo}} h4"></i>
|
|
|
|
|
|
- {{ else }}
|
|
|
+ {{ else }}
|
|
|
|
|
|
- {{ $logoImage:= resources.Get .logo}}
|
|
|
- {{ if $logoImage }}
|
|
|
- {{/* svg don't support "Fit" operation */}}
|
|
|
- {{ if ne $logoImage.MediaType.SubType "svg" }}
|
|
|
- {{ $logoImage = $logoImage.Fit "24x24" }}
|
|
|
+ {{ $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 }}
|
|
|
- <img class="card-img-xs" src="{{ $logoImage.RelPermalink }}" alt="{{ .name }}" />
|
|
|
{{ end }}
|
|
|
- {{ end }}
|
|
|
|
|
|
- {{ end }}
|
|
|
-
|
|
|
- <h5 class="card-title mb-0">{{ .name }}</h5>
|
|
|
- </div>
|
|
|
- <div class="sub-title">
|
|
|
- <span>{{ .role }}</span>
|
|
|
- <span>{{ .timeline }}</span>
|
|
|
+ {{ end }}
|
|
|
+
|
|
|
+ <h5 class="card-title mb-0">{{ .name }}</h5>
|
|
|
+ </div>
|
|
|
+ <div class="sub-title">
|
|
|
+ <span>{{ .role }}</span>
|
|
|
+ <span>{{ .timeline }}</span>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</a>
|