🐛 Fix logo and dark logo not matching appearance

Fixes: #939
This commit is contained in:
James Panther
2025-06-22 14:52:44 +10:00
parent 53a7374659
commit b473215511
4 changed files with 4 additions and 3 deletions
+2 -2
View File
@@ -9,7 +9,7 @@
width="{{ div $logo.Width 2 }}"
height="{{ div $logo.Height 2 }}"
class="max-h-[10rem] max-w-[10rem] object-scale-down object-left
{{ if $logo_dark }}hidden dark:flex{{ end }}"
{{ if $logo_dark }}dark:hidden flex{{ end }}"
alt="{{ .Site.Title }}"
/>
{{- if $logo_dark }}
@@ -17,7 +17,7 @@
src="{{ $logo_dark.RelPermalink }}"
width="{{ div $logo_dark.Width 2 }}"
height="{{ div $logo_dark.Height 2 }}"
class="max-h-[10rem] max-w-[10rem] object-scale-down object-left dark:hidden"
class="hidden max-h-[10rem] max-w-[10rem] object-scale-down object-left dark:flex"
alt="{{ .Site.Title }}"
/>
{{- end }}