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