summaryrefslogtreecommitdiff
path: root/layouts/_partials/header.html
diff options
context:
space:
mode:
authorBigCoke233 <hi@guhub.cn>2025-12-17 19:49:33 +0800
committerBigCoke233 <hi@guhub.cn>2025-12-17 19:49:33 +0800
commit96d75f82475745d5b26ee05b005b0d48b42b7b48 (patch)
tree1d921e28c1c1a3c587f1326fedabad4f0b0e957c /layouts/_partials/header.html
parent6fdbcea7c1477ce57352f62d18edf9cdea40219f (diff)
fix: unexpectedly navigate back to CN site the context did not pass to logo
component, hence `.Site.LanguagePrefix` gives nothing.
Diffstat (limited to 'layouts/_partials/header.html')
-rw-r--r--layouts/_partials/header.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/_partials/header.html b/layouts/_partials/header.html
index 75410879..d43c1d4f 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" (dict "imageClass" "md:w-20 md:h-auto") }}
+ {{ partial "components/logo" (dict "imageClass" "md:w-20 md:h-auto" "ctx" .) }}
<a class="text-8 font-900 text-center tracking-widest
xerox hover:no-underline"
href="{{ .Site.LanguagePrefix }}/"