diff options
author | Christoph Cullmann <christoph@cullmann.io> | 2024-08-28 22:54:34 +0200 |
---|---|---|
committer | Christoph Cullmann <christoph@cullmann.io> | 2024-08-28 22:54:34 +0200 |
commit | 8f3d03b1888fed23e6aa07d6077045e673357481 (patch) | |
tree | a914b8f43b8486380ccc1c35721b28da2ff7986a /themes/blowfish/layouts/partials/header/basic.html | |
parent | 8db6bd0e555dca050d7d885582100c5ca5ba3aa2 (diff) |
Diffstat (limited to 'themes/blowfish/layouts/partials/header/basic.html')
-rw-r--r-- | themes/blowfish/layouts/partials/header/basic.html | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/themes/blowfish/layouts/partials/header/basic.html b/themes/blowfish/layouts/partials/header/basic.html index 6b2c6fa..caf69fa 100644 --- a/themes/blowfish/layouts/partials/header/basic.html +++ b/themes/blowfish/layouts/partials/header/basic.html @@ -7,8 +7,14 @@ <a href="{{ "" | relLangURL }}" class="flex"> <span class="sr-only">{{ .Site.Title | markdownify }}</span> + {{ if eq $logo.MediaType.SubType "svg" }} + <span class="logo object-scale-down object-left nozoom"> + {{ $logo.Content | safeHTML }} + </span> + {{ else }} <img src="{{ $logo.RelPermalink }}" width="{{ div $logo.Width 2 }}" height="{{ div $logo.Height 2 }}" class="logo max-h-[5rem] max-w-[5rem] object-scale-down object-left nozoom" alt="{{ .Site.Title }}" /> + {{ end }} </a> </div> |