From 26c992ac57568b7253e12802e5a9d057a12b016e Mon Sep 17 00:00:00 2001 From: Eltrac Date: Thu, 6 Nov 2025 11:19:13 +0800 Subject: feat: replace term title with header title --- layouts/_partials/header.html | 3 +++ layouts/_partials/term/term-header.html | 11 ----------- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/layouts/_partials/header.html b/layouts/_partials/header.html index 9ef52b42..75410879 100644 --- a/layouts/_partials/header.html +++ b/layouts/_partials/header.html @@ -10,6 +10,9 @@ {{ if .IsHome }} {{ .Site.Title }} {{ else }} + {{ if eq .Kind "term" }} + {{ if eq .Data.Singular "tag" }}#{{ else }}+{{ end }} + {{ end }} {{ .Title }} {{ end }}

- -
- {{ if or (hasPrefix .Page.Params.icon "http://") (hasPrefix .Page.Params.icon "https://") }} - {{ .Page.LinkTitle }} - {{ else }} - {{ .Page.Params.icon }} - {{ end }} - {{ if and (eq .Data.Singular "tag") (not .Params.icon) }}#{{ end }} - {{ .Title }} -
{{ if eq .Data.Singular "tag" }} -- cgit v1.2.3