diff --git a/assets/styles/components/images.scss b/assets/styles/components/images.scss index d546d7b..0fa10d1 100644 --- a/assets/styles/components/images.scss +++ b/assets/styles/components/images.scss @@ -46,3 +46,9 @@ html[data-theme='dark'] { .svg-inverted { filter: invert(1); } + +.company-logo { + height: auto; + width: 64px; + margin-bottom: 1em; +} \ No newline at end of file diff --git a/layouts/partials/sections/education-alt.html b/layouts/partials/sections/education-alt.html index b6996df..38da779 100644 --- a/layouts/partials/sections/education-alt.html +++ b/layouts/partials/sections/education-alt.html @@ -31,6 +31,17 @@
+ + {{ $logoImage:= resources.Get .institution.logo}} + {{ if $logoImage }} + {{/* svg don't support "Fit" operation */}} + {{ if ne $logoImage.MediaType.SubType "svg" }} + {{ $logoImage = $logoImage.Fit "300x300" }} + {{ end }} + + + {{ end }} +
{{ if .institution.url }} diff --git a/layouts/partials/sections/education.html b/layouts/partials/sections/education.html index 6a7fb74..4429ad5 100644 --- a/layouts/partials/sections/education.html +++ b/layouts/partials/sections/education.html @@ -31,6 +31,17 @@
+ + {{ $logoImage:= resources.Get .institution.logo}} + {{ if $logoImage }} + {{/* svg don't support "Fit" operation */}} + {{ if ne $logoImage.MediaType.SubType "svg" }} + {{ $logoImage = $logoImage.Fit "300x300" }} + {{ end }} + + + {{ end }} +
{{ if .institution.url }}