summaryrefslogtreecommitdiff
path: root/layouts/_partials/header
diff options
context:
space:
mode:
authoreltrac <hi@eltr.ac>2026-04-07 14:53:17 +0800
committereltrac <hi@eltr.ac>2026-04-07 14:53:17 +0800
commit10431bd8f5ff71690ae4e5444e8d7894fd401ae5 (patch)
tree62b7fd1b6c1f68d2804f380eb522bcebeb2c8d9f /layouts/_partials/header
parent3e0edacc4a0cafa53ede57ebb6f0378c93f3123b (diff)
chore: move templates out of site repo
Diffstat (limited to 'layouts/_partials/header')
-rw-r--r--layouts/_partials/header/navigation.html13
-rw-r--r--layouts/_partials/header/other-navigation.html29
2 files changed, 0 insertions, 42 deletions
diff --git a/layouts/_partials/header/navigation.html b/layouts/_partials/header/navigation.html
deleted file mode 100644
index 168d614f..00000000
--- a/layouts/_partials/header/navigation.html
+++ /dev/null
@@ -1,13 +0,0 @@
-<nav class="my-6 flex justify-center items-center w-fit rounded-4 overflow-hidden">
- {{ range .Site.Params.nav }}
- <a class="inline-block py-1 px-[0.35rem] md:px-2 first:pl-3 last:pr-3
- block hover:no-underline text-nowrap
- {{ if eq $.Page.RelPermalink .link }}
- text-[var(--text-color)] bg-[var(--block-background-color)]
- {{ else }}
- text-[var(--background-color)] bg-[var(--text-color)]
- {{ end }}"
- href="{{ .link }}"
- >{{ .name }}</a>
- {{ end }}
-</nav>
diff --git a/layouts/_partials/header/other-navigation.html b/layouts/_partials/header/other-navigation.html
deleted file mode 100644
index 4be0dba0..00000000
--- a/layouts/_partials/header/other-navigation.html
+++ /dev/null
@@ -1,29 +0,0 @@
-{{ $langButtonSize := "w-4 h-4" }}
-
-<div class="flex gap-2 pr-2">
- <!-- theme switch -->
- <label for="theme-select" class="hidden">colorscheme</label>
- <select id="theme-select"
- class="bg-neutral/10 border-1 border-[var(--text-color)] border-solid rd text-[var(--text-color)] font-serif text-size-[0.5rem] font-extrabold">
- {{ $switches := slice "auto" "light" "dark" }}
- {{ range $switches }}
- <option value="{{ . }}">{{ T (printf "theme.%s" .) }}</option>
- {{ end }}
- </select>
- <!-- language switch -->
- {{- $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="rd-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>
-</div>