fix: Eviter une redirection inutil

This commit is contained in:
Simon 2021-01-28 21:06:18 +01:00
parent 8ee5df4209
commit aefceba119
1 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
<h1>Le fil <strong>des actualités</strong></h1>
<div class="infos">
<div class="news">
{{ $headless := .Site.GetPage "/actualites" }}
{{ $headless := .Site.GetPage "/actualites/" }}
{{ $lastnews := first 4 (sort $headless.Pages "Date" "desc") }}
{{ $first := index (first 1 $lastnews) 0 }}
{{ $others := after 1 $lastnews }}
@ -15,7 +15,7 @@
{{ partial "article-preview.html" . }}
{{ end }}
<p>
<a href="/actualites">Voir toutes les actualités</a>
<a href="/actualites/">Voir toutes les actualités</a>
</p>
</div>
<div class="opening">