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:
parent
d0a6eb4b28
commit
0ca50fc05d
1 changed files with 5 additions and 5 deletions
|
@ -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>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue