fix width of sidebar icons

This commit is contained in:
geekifan
2025-04-27 10:52:34 +08:00
parent ac0957bbc8
commit f3f00934a7
2 changed files with 6 additions and 6 deletions

View File

@ -40,31 +40,31 @@ path = "github.com/gohugoio/hugo-mod-bootstrap-scss/v5"
name = "Home" name = "Home"
url = "/" url = "/"
weight = 10 weight = 10
pre = "fa-solid fa-house" pre = "fa-house"
[[menu.main]] [[menu.main]]
name = "Categories" name = "Categories"
url = "/categories/" url = "/categories/"
weight = 20 weight = 20
pre = "fa-solid fa-stream" pre = "fa-stream"
[[menu.main]] [[menu.main]]
name = "Tags" name = "Tags"
url = "/tags/" url = "/tags/"
weight = 30 weight = 30
pre = "fa-solid fa-tags" pre = "fa-tags"
[[menu.main]] [[menu.main]]
name = "Archives" name = "Archives"
url = "/archives/" url = "/archives/"
weight = 40 weight = 40
pre = "fa-solid fa-archive" pre = "fa-archive"
[[menu.main]] [[menu.main]]
name = "About" name = "About"
url = "/about/" url = "/about/"
weight = 50 weight = 50
pre = "fa-solid fa-info-circle" pre = "fa-info-circle"
[params] [params]
theme_version = "5.2.0" theme_version = "5.2.0"

View File

@ -24,7 +24,7 @@
{{ range .Site.Menus.main }} {{ range .Site.Menus.main }}
<li class="nav-item{{ if eq .URL $.RelPermalink }} active{{ end }}"> <li class="nav-item{{ if eq .URL $.RelPermalink }} active{{ end }}">
<a href="{{ .URL | relURL }}" class="nav-link"> <a href="{{ .URL | relURL }}" class="nav-link">
<i class="{{ .Pre }}"></i> <i class="fa-fw fas {{ .Pre }}"></i>
<span>{{ (i18n (printf "tabs.%s" .Identifier) | default .Name) | upper }}</span> <span>{{ (i18n (printf "tabs.%s" .Identifier) | default .Name) | upper }}</span>
</a> </a>
</li> </li>