27 lines
794 B
HTML
27 lines
794 B
HTML
{{ define "main" }}
|
|
<div class="container">
|
|
<h1>Le fil <strong>des actualités</strong></h1>
|
|
<div class="infos">
|
|
<div class="news">
|
|
{{ $headless := .Site.GetPage "/actualites" }}
|
|
{{ $lastnews := first 4 (sort $headless.Pages "Date" "desc") }}
|
|
{{ $first := index (first 1 $lastnews) 0 }}
|
|
{{ $others := after 1 $lastnews }}
|
|
{{ with $first }}
|
|
{{ .Scratch.Set "big" true }}
|
|
{{ partial "article-preview.html" . }}
|
|
{{ end }}
|
|
{{ range $others }}
|
|
{{ partial "article-preview.html" . }}
|
|
{{ end }}
|
|
<p>
|
|
<a href="/actualites">Voir toutes les actualités</a>
|
|
</p>
|
|
</div>
|
|
<div class="opening">
|
|
{{ .Content }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{ end }}
|