summaryrefslogtreecommitdiff
path: root/layouts/_partials/header.html
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-09-12 20:13:02 +0800
committerEltrac <hi@guhub.cn>2025-09-12 20:13:02 +0800
commite4bd861f8dcdddc6e9150ed5fe17bef73b176aa5 (patch)
tree274fb2531bba921494f6dcedff7998589016c46f /layouts/_partials/header.html
parent8420a5919d91badbae2b49ac049c9050dacd3696 (diff)
feat: show hoverable logo only at homepage
Diffstat (limited to 'layouts/_partials/header.html')
-rw-r--r--layouts/_partials/header.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/layouts/_partials/header.html b/layouts/_partials/header.html
index d2205e9b..814fe992 100644
--- a/layouts/_partials/header.html
+++ b/layouts/_partials/header.html
@@ -1,7 +1,11 @@
<header class="pagefind-exclude">
<!-- Logo & Title -->
<div class="flex flex-col items-center gap-2">
- {{ partial "header/hoverable-logo" . }}
+ {{ if .IsHome }}
+ {{ partial "header/hoverable-logo" . }}
+ {{ else }}
+ {{ partial "components/logo" (dict "imageClass" "w-[10rem]") }}
+ {{ end }}
<a class="text-8 font-900 text-center tracking-widest
xerox hover:no-underline"
href="{{ .Site.LanguagePrefix }}/"