summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-09-10 19:47:25 +0800
committerEltrac <hi@guhub.cn>2025-09-10 19:47:25 +0800
commit1cf3ce8e479262cc14c4d2ac481179af19dbf81c (patch)
treec86ddcc2998dfae3bccf1601276026dddb3b3ed8
parentab09dc19b06d71068d6eca04729b0ecca363d4ad (diff)
fix: using div in ul
Former-commit-id: 82d9b61713713b77ec152d23ca460e46897414a2
-rw-r--r--layouts/_partials/home/home-nav-item.html4
-rw-r--r--layouts/_partials/home/home-nav.html4
2 files changed, 4 insertions, 4 deletions
diff --git a/layouts/_partials/home/home-nav-item.html b/layouts/_partials/home/home-nav-item.html
index aea3c481..b5554acb 100644
--- a/layouts/_partials/home/home-nav-item.html
+++ b/layouts/_partials/home/home-nav-item.html
@@ -2,11 +2,11 @@
{{ $link := .link }}
{{ $text := .text }}
-<li class="flex-shrink-0 flex-grow-0">
+<div class="flex-shrink-0 flex-grow-0">
<a data-umami-event="🧭 Click postnav link"
href="{{ .Site.LanguagePrefix }}/{{ $link }}"
class="small-button {{ if $active }}font-extrabold{{ end }}"
>
{{ $text }}
</a>
-</li>
+</div>
diff --git a/layouts/_partials/home/home-nav.html b/layouts/_partials/home/home-nav.html
index f4133293..d3ae0e51 100644
--- a/layouts/_partials/home/home-nav.html
+++ b/layouts/_partials/home/home-nav.html
@@ -1,5 +1,5 @@
<div id="home-nav">
- <ul class="relative w-full ps-0 flex list-none gap-1
+ <nav class="relative w-full ps-0 flex list-none gap-1
text-size-sm md:text-size-base">
{{ partial "home/home-nav-item" (dict
"text" (T "postNav.latest")
@@ -39,5 +39,5 @@
<img src="/img/graph.svg" class="opacity-50 h-8 w-8" />
</a>
<li>
- </ul>
+ </nav>
</div>