diff options
| author | Eltrac <hi@guhub.cn> | 2025-11-05 20:36:15 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-11-05 20:36:15 +0800 |
| commit | d48e9b80f3223d3ce01a54c19fa010c2a6cef4bd (patch) | |
| tree | e1fd36fe2af11bdc75a4919d91b1a616a19386a1 /layouts/_partials/header/language-switch.html | |
| parent | 200fc68c9de8e131807157f482219b38d3de0a43 (diff) | |
feat: brand-new header design
Former-commit-id: 5b4275c78ee9330a48868fc67e0c1e6c9d8b1bc2
Diffstat (limited to 'layouts/_partials/header/language-switch.html')
| -rw-r--r-- | layouts/_partials/header/language-switch.html | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/layouts/_partials/header/language-switch.html b/layouts/_partials/header/language-switch.html deleted file mode 100644 index 9f0a9c20..00000000 --- a/layouts/_partials/header/language-switch.html +++ /dev/null @@ -1,17 +0,0 @@ -{{ $langButtonSize := "w-4 h-4" }} - -{{- $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 -}} -<a - href="{{ $entry.url }}" - class="rounded-full text-center hover:no-underline {{ $langButtonSize }} - bg-neutral/10 border-1 border-[var(--text-color)] border-solid - bg-[var(--block-background-color)] - flex items-center justify-center" - title="{{ $entry.title }}" -> - <span class="text-size-[0.5rem] font-extrabold">{{ $entry.label }}</span> -</a> |
