Correction des liens des pages courantes.
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2026-03-25 00:50:20 +01:00
parent de5d7bb639
commit 1bf9b55673
2 changed files with 4 additions and 6 deletions
+1 -1
View File
@@ -8,7 +8,7 @@
</li> </li>
{{ end }} {{ end }}
<li class="active {{ cond .IsNode "directory" "file" }}"> <li class="active {{ cond .IsNode "directory" "file" }}">
<a aria-current="page" href="" title="{{ .Title }}">{{ .LinkTitle }}</a> <a aria-current="page" href="{{ .RelPermalink }}" title="{{ .Title }}">{{ .LinkTitle }}</a>
</li> </li>
</ol> </ol>
</nav> </nav>
+1 -3
View File
@@ -28,10 +28,8 @@
<a class="{{ with $page.Params.class -}}{{ . }}{{ end }}" <a class="{{ with $page.Params.class -}}{{ . }}{{ end }}"
{{ if and .currentPage (.currentPage.Eq $page) }} {{ if and .currentPage (.currentPage.Eq $page) }}
aria-current="page" aria-current="page"
href=""
{{ else }}
href="{{ $page.RelPermalink }}"
{{ end }} {{ end }}
href="{{ $page.RelPermalink }}"
title="{{ $page.Title }}">{{ or .linkTitle (print title="{{ $page.Title }}">{{ or .linkTitle (print
$page.File.BaseFileName "." $page.File.Ext) $page.LinkTitle }}</a> $page.File.BaseFileName "." $page.File.Ext) $page.LinkTitle }}</a>
</span> </span>