Add education logo

This commit is contained in:
BernatBC 2024-02-02 19:08:22 +01:00
parent de1cee3951
commit e6e2ace228
3 changed files with 28 additions and 0 deletions

View file

@ -46,3 +46,9 @@ html[data-theme='dark'] {
.svg-inverted {
filter: invert(1);
}
.company-logo {
height: auto;
width: 64px;
margin-bottom: 1em;
}

View file

@ -31,6 +31,17 @@
</td>
<td class="details">
<div class="degree-info card">
{{ $logoImage:= resources.Get .institution.logo}}
{{ if $logoImage }}
{{/* svg don't support "Fit" operation */}}
{{ if ne $logoImage.MediaType.SubType "svg" }}
{{ $logoImage = $logoImage.Fit "300x300" }}
{{ end }}
<img class="company-logo" src="{{ $logoImage.RelPermalink }}" alt="{{ .name }}" />
{{ end }}
<div class="row">
<div class="col-lg-10 col-md-8">
{{ if .institution.url }}

View file

@ -31,6 +31,17 @@
</td>
<td class="details">
<div class="degree-info card">
{{ $logoImage:= resources.Get .institution.logo}}
{{ if $logoImage }}
{{/* svg don't support "Fit" operation */}}
{{ if ne $logoImage.MediaType.SubType "svg" }}
{{ $logoImage = $logoImage.Fit "300x300" }}
{{ end }}
<img class="company-logo" src="{{ $logoImage.RelPermalink }}" alt="{{ .name }}" />
{{ end }}
<div class="row">
<div class="col-lg-10 col-md-8">
{{ if .institution.url }}