summaryrefslogtreecommitdiff
path: root/layouts/_partials/header.html
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-11-06 10:24:47 +0800
committerEltrac <hi@guhub.cn>2025-11-06 10:24:47 +0800
commit2e139bd00a21f66d93d473e4b1aa007af6e24694 (patch)
tree0bcd8fd91116eb925c3eb18eafcd7d3efc9ac9b5 /layouts/_partials/header.html
parenta51beff8a0591ab3849d33dbf97f45a186a3ee4c (diff)
feat: show page title instead of site title when not in home
Former-commit-id: 80eb9daba825a915cc9be40e8930ad815c6db9e4
Diffstat (limited to 'layouts/_partials/header.html')
-rw-r--r--layouts/_partials/header.html8
1 files changed, 7 insertions, 1 deletions
diff --git a/layouts/_partials/header.html b/layouts/_partials/header.html
index df956db8..9ef52b42 100644
--- a/layouts/_partials/header.html
+++ b/layouts/_partials/header.html
@@ -6,7 +6,13 @@
<a class="text-8 font-900 text-center tracking-widest
xerox hover:no-underline"
href="{{ .Site.LanguagePrefix }}/"
- >{{ .Site.Title }}</a
+ >
+ {{ if .IsHome }}
+ {{ .Site.Title }}
+ {{ else }}
+ {{ .Title }}
+ {{ end }}
+ </a
>
</div>
<!-- Navigation -->