Files
cremeaux/layouts/actualites/single.html
Simon C f2a78d7375 feat: Avancement général sur le contenu et le design
fixes #3, fixes #4, fixes #5, fixes #7, fixes #8, fixes #9, fixes #10
2021-04-29 14:02:20 +02:00

32 lines
955 B
HTML

{{ define "main" }}
<div class="container">
<h1>{{ .RenderString .Title }}</h1>
<div class="container news md">
<small>
<time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Day }} {{ index $.Site.Data.mois (printf "%d" .Date.Month) }} {{ .Date.Year }}</time>
</small>
{{ .Content }}
<aside>
<hr>
<h2>
{{ if and .NextInSection .PrevInSection }}
Les actualités suivant et précédent
{{ else if .NextInSection }}
L'actualité précédent
{{ else }}
L'actualité suivant
{{ end }}
</h2>
{{ with .NextInSection }}
{{ .Scratch.Set "big" false }}
{{ partial "article-preview.html" . }}
{{ end }}
{{ with .PrevInSection }}
{{ .Scratch.Set "big" false }}
{{ partial "article-preview.html" . }}
{{ end }}
</aside>
</div>
</div>
{{ end }}