fix: Eviter une redirection inutil
This commit is contained in:
parent
8ee5df4209
commit
aefceba119
|
@ -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">
|
||||
|
|
Loading…
Reference in New Issue