Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/hossainemruz/toha.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan <jan.stuehler@web.de>2022-01-24 13:58:50 +0300
committerGitHub <noreply@github.com>2022-01-24 13:58:50 +0300
commit2b9ce8fb29c02f5622d4e1e1874ef4a66b595acc (patch)
tree6dc560265d54e092db183e07b4e4752559c50aa7 /layouts
parentd93c49d82a173b9650ac87d860150988b9aa0540 (diff)
Update skill.html (#512)
As proposed in #506
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/cards/skill.html10
1 files changed, 7 insertions, 3 deletions
diff --git a/layouts/partials/cards/skill.html b/layouts/partials/cards/skill.html
index cba5529..c8e6e1c 100644
--- a/layouts/partials/cards/skill.html
+++ b/layouts/partials/cards/skill.html
@@ -4,15 +4,19 @@
<div class="card-head d-flex">
{{ if .logo }}
{{ $logoImage := resources.Get .logo }}
-
{{/* 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 }}" />
+ <h5 class="card-title">{{ .name }}</h5>
+ {{ else if .icon }}
+ {{ $iconName := .icon }}
+ <h5 class="card-title"><span class="{{ $iconName }}"> {{ .name }}</span></h5>
+ {{ else }}
+ <h5 class="card-title">{{ .name }}</h5>
{{ end }}
- <h5 class="card-title">{{ .name }}</h5>
</div>
<div class="card-body">
<p class="card-text">{{ .summary | markdownify }}</p>