Changed "logo" to "icon" to correspond to guide (2359b494c7/content/posts/configuration/sections/skills/index.md (L27)
)
22 lines
792 B
HTML
22 lines
792 B
HTML
<div class="col-xs-12 col-sm-6 col-lg-4 pt-2">
|
|
<a class="skill-card-link" {{ if .url }}href="{{ .url }}" title="{{ .name }}" target="_blank" rel="noopener"{{ end }}>
|
|
<div class="card">
|
|
<div class="card-head d-flex">
|
|
{{ if .icon }}
|
|
{{ $iconImage := resources.Get .icon }}
|
|
|
|
{{/* svg don't support "Fit" operation */}}
|
|
{{ if ne $iconImage.MediaType.SubType "svg" }}
|
|
{{ $iconImage = $iconImage.Fit "24x24" }}
|
|
{{ end }}
|
|
|
|
<img class="card-img-xs" src="{{ $iconImage.RelPermalink }}" alt="{{ .name }}" />
|
|
{{ end }}
|
|
<h5 class="card-title">{{ .name }}</h5>
|
|
</div>
|
|
<div class="card-body">
|
|
<p class="card-text">{{ .summary | markdownify }}</p>
|
|
</div>
|
|
</div>
|
|
</a>
|
|
</div>
|