Sidebar links go to where they're supposed to

This commit is contained in:
tsmitty11 2023-05-18 21:44:31 +02:00
parent 4d507e06ab
commit 91bce42227

View file

@ -1,4 +1,4 @@
<div class="col-md-3 sidebar pt-4 ps-4"> <div class="col-md-3 sidebar pt-4 pb-5 ps-4">
<!-- Recent Posts --> <!-- Recent Posts -->
<h4 class="mt-4">Recent Posts</h4> <h4 class="mt-4">Recent Posts</h4>
@ -10,15 +10,15 @@
<h4 class="mt-4">categories</h4> <h4 class="mt-4">categories</h4>
<ul class="sidebar-list"> <ul class="sidebar-list">
{{ range .Site.Taxonomies.categories }} {{ range $key, $value := .Site.Taxonomies.categories }}
<li><a href="{{ "/categories/" | relLangURL }}{{ . | urlize }}">{{ .Page.Title }}</a></li> <li><a href="{{ printf "/%s/%s/" "categories" $key | relLangURL }}">{{ $key }}</a></li>
{{ end }} {{ end }}
</ul> </ul>
<h4 class="mt-4">tags</h4> <h4 class="mt-4">tags</h4>
<ul class="sidebar-list"> <ul class="sidebar-list">
{{ range .Site.Taxonomies.tags }} {{ range $key, $value := .Site.Taxonomies.tags }}
<li><a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ .Page.Title }}</a></li> <li><a href="{{ printf "/%s/%s/" "tags" $key | relLangURL }}">{{ $key }}</a></li>
{{ end }} {{ end }}
</ul> </ul>