summaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-11-05 21:09:06 +0800
committerEltrac <hi@guhub.cn>2025-11-05 21:09:06 +0800
commit050146f9bfcb29cb9b2805ebb70032766fdf1f2e (patch)
tree6855e55eb1f8fec520008f96fa9f2035d874063b /layouts
parentf1d33282a497e09782c3fd42a6e79f6911823c23 (diff)
fix: stretched logo in certain pages
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_partials/components/logo.html1
-rw-r--r--layouts/_partials/header.html2
2 files changed, 1 insertions, 2 deletions
diff --git a/layouts/_partials/components/logo.html b/layouts/_partials/components/logo.html
index eff37b6a..3a8cbf7a 100644
--- a/layouts/_partials/components/logo.html
+++ b/layouts/_partials/components/logo.html
@@ -9,6 +9,5 @@
<img src="{{ $src }}" alt="Logo"
class="dark:invert title-image {{ $imageClass }}"
style="view-transition-name: title-image"
- width="80px" height="77px"
/>
</a>
diff --git a/layouts/_partials/header.html b/layouts/_partials/header.html
index 085bbb2f..df956db8 100644
--- a/layouts/_partials/header.html
+++ b/layouts/_partials/header.html
@@ -2,7 +2,7 @@
md:flex md:justify-between mb-4">
<!-- Logo & Title -->
<div class="flex flex-col items-center md:items-start gap-2">
- {{ partial "components/logo" }}
+ {{ partial "components/logo" (dict "imageClass" "md:w-20 md:h-auto") }}
<a class="text-8 font-900 text-center tracking-widest
xerox hover:no-underline"
href="{{ .Site.LanguagePrefix }}/"