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 | e54843a907f68eedd3a5afbec42d107800723347 (patch) | |
| tree | 45a27dee28c275aacf92c81e85d92a2054d5d963 | |
| parent | 7f66ff9a5c84e54b119fb880da5aaa95b9c44552 (diff) | |
feat: show home nav only if site lang is zh
| -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 }} |
