From e6e2ace22843bfa6a5b29151469b8c4347b88375 Mon Sep 17 00:00:00 2001 From: BernatBC Date: Fri, 2 Feb 2024 19:08:22 +0100 Subject: [PATCH] Add education logo --- assets/styles/components/images.scss | 6 ++++++ layouts/partials/sections/education-alt.html | 11 +++++++++++ layouts/partials/sections/education.html | 11 +++++++++++ 3 files changed, 28 insertions(+) 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 }}