feat: logo and icon

`logo` can refer to an image path, `icon` can refer to a fontawesome description.
This commit is contained in:
Jan 2022-01-19 21:40:12 +01:00 committed by GitHub
parent 4ebbb523a5
commit dfe16e8169
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,7 +12,13 @@
<img class="card-img-xs" src="{{ $logoImage.RelPermalink }}" alt="{{ .name }}" />
{{ end }}
{{ if .icon }}
{{ $iconName := .icon }}
<h5 class="card-title"><span class="{{ $iconName }}"> {{ .name }}</span></h5>
{{ else }}
<h5 class="card-title">{{ .name }}</h5>
{{ end }}
</div>
<div class="card-body">
<p class="card-text">{{ .summary | markdownify }}</p>