diff options
| author | Eltrac <hi@guhub.cn> | 2025-09-11 11:53:08 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-09-11 11:53:08 +0800 |
| commit | b05a730902a2f0bc0896baf0c4772bf4f04395d5 (patch) | |
| tree | 036d58c6e7b08cce8e5df7f0c7292fe49baf6ee8 | |
| parent | fe1609440ec931a7334dd099bf0e0ca5654dafd7 (diff) | |
feat: show home nav only if site lang is zh
Former-commit-id: e54843a907f68eedd3a5afbec42d107800723347
| -rw-r--r-- | layouts/_partials/home/home-nav.html | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/layouts/_partials/home/home-nav.html b/layouts/_partials/home/home-nav.html index 144f3e48..edbf35bd 100644 --- a/layouts/_partials/home/home-nav.html +++ b/layouts/_partials/home/home-nav.html @@ -1,3 +1,4 @@ +{{ if eq .Site.Language.Lang "zh" }} <div id="home-nav"> <nav class="relative w-full ps-0 flex list-none gap-1 text-size-sm md:text-size-base"> @@ -41,3 +42,4 @@ <li> </nav> </div> +{{ end }} |
