From d48e9b80f3223d3ce01a54c19fa010c2a6cef4bd Mon Sep 17 00:00:00 2001 From: Eltrac Date: Wed, 5 Nov 2025 20:36:15 +0800 Subject: feat: brand-new header design Former-commit-id: 5b4275c78ee9330a48868fc67e0c1e6c9d8b1bc2 --- layouts/_partials/header/other-navigation.html | 35 ++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 layouts/_partials/header/other-navigation.html (limited to 'layouts/_partials/header/other-navigation.html') diff --git a/layouts/_partials/header/other-navigation.html b/layouts/_partials/header/other-navigation.html new file mode 100644 index 00000000..c40860c1 --- /dev/null +++ b/layouts/_partials/header/other-navigation.html @@ -0,0 +1,35 @@ +{{ $langButtonSize := "w-4 h-4" }} + +
+ {{ if eq .Site.Language.Lang "zh" }} + + + {{ end }} + + + {{- $lang := .Site.Language.Lang -}} + {{- $switch := dict + "en" (dict "url" "/zh/" "label" "ZH" "title" "查看中文博客") + "zh" (dict "url" "/en/" "label" "EN" "title" "View English Blog") -}} + {{- $entry := index $switch $lang -}} + + {{ $entry.label }} + +
-- cgit v1.2.3