diff options
| author | Eltrac <hi@guhub.cn> | 2025-09-12 20:13:02 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-09-12 20:13:02 +0800 |
| commit | e4bd861f8dcdddc6e9150ed5fe17bef73b176aa5 (patch) | |
| tree | 274fb2531bba921494f6dcedff7998589016c46f | |
| parent | 8420a5919d91badbae2b49ac049c9050dacd3696 (diff) | |
feat: show hoverable logo only at homepage
| -rw-r--r-- | layouts/_partials/header.html | 6 |
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 }}/" |
