Add education logo
This commit is contained in:
parent
de1cee3951
commit
e6e2ace228
3 changed files with 28 additions and 0 deletions
|
@ -46,3 +46,9 @@ html[data-theme='dark'] {
|
||||||
.svg-inverted {
|
.svg-inverted {
|
||||||
filter: invert(1);
|
filter: invert(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.company-logo {
|
||||||
|
height: auto;
|
||||||
|
width: 64px;
|
||||||
|
margin-bottom: 1em;
|
||||||
|
}
|
|
@ -31,6 +31,17 @@
|
||||||
</td>
|
</td>
|
||||||
<td class="details">
|
<td class="details">
|
||||||
<div class="degree-info card">
|
<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="row">
|
||||||
<div class="col-lg-10 col-md-8">
|
<div class="col-lg-10 col-md-8">
|
||||||
{{ if .institution.url }}
|
{{ if .institution.url }}
|
||||||
|
|
|
@ -31,6 +31,17 @@
|
||||||
</td>
|
</td>
|
||||||
<td class="details">
|
<td class="details">
|
||||||
<div class="degree-info card">
|
<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="row">
|
||||||
<div class="col-lg-10 col-md-8">
|
<div class="col-lg-10 col-md-8">
|
||||||
{{ if .institution.url }}
|
{{ if .institution.url }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue