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
This commit is contained in:
2020-11-25 18:00:03 +01:00
parent 1d59996608
commit f2a78d7375
157 changed files with 530 additions and 3745 deletions

View File

@ -2,7 +2,30 @@
<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 }}