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
commit36f2c0d853d686bbb3b4b5ae8a095a2f72abd733 (patch)
treecc4913fc2f9ed80acb9df417aa9c392352475b9f /layouts
parentcc4813641d8a2deb1c2fe80e44254175db94f3c4 (diff)
fix: stretched logo in certain pages
Former-commit-id: 050146f9bfcb29cb9b2805ebb70032766fdf1f2e
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 }}/"