Update skill.html

Changed "logo" to "icon" to correspond to guide (2359b494c7/content/posts/configuration/sections/skills/index.md (L27))
This commit is contained in:
Jan 2022-01-18 23:06:08 +01:00 committed by GitHub
parent d0a6eb4b28
commit 0ca50fc05d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,15 +2,15 @@
<a class="skill-card-link" {{ if .url }}href="{{ .url }}" title="{{ .name }}" target="_blank" rel="noopener"{{ end }}> <a class="skill-card-link" {{ if .url }}href="{{ .url }}" title="{{ .name }}" target="_blank" rel="noopener"{{ end }}>
<div class="card"> <div class="card">
<div class="card-head d-flex"> <div class="card-head d-flex">
{{ if .logo }} {{ if .icon }}
{{ $logoImage := resources.Get .logo }} {{ $iconImage := resources.Get .icon }}
{{/* svg don't support "Fit" operation */}} {{/* svg don't support "Fit" operation */}}
{{ if ne $logoImage.MediaType.SubType "svg" }} {{ if ne $iconImage.MediaType.SubType "svg" }}
{{ $logoImage = $logoImage.Fit "24x24" }} {{ $iconImage = $iconImage.Fit "24x24" }}
{{ end }} {{ end }}
<img class="card-img-xs" src="{{ $logoImage.RelPermalink }}" alt="{{ .name }}" /> <img class="card-img-xs" src="{{ $iconImage.RelPermalink }}" alt="{{ .name }}" />
{{ end }} {{ end }}
<h5 class="card-title">{{ .name }}</h5> <h5 class="card-title">{{ .name }}</h5>
</div> </div>