2021-05-11 10:01:24 +02:00
|
|
|
{{ define "main" }}
|
2021-05-21 14:53:35 +02:00
|
|
|
<div class="container">
|
|
|
|
<aside>
|
|
|
|
<div>
|
|
|
|
<section>
|
|
|
|
<time class="post-date" datetime="{{ .Date.Format `2006-01-02T15:04:05Z07:00` | safeHTML }}">
|
|
|
|
Article publié le {{ .Date.Day }} {{ index $.Site.Data.months_fr (printf "%d" .Date.Month) }} {{ .Date.Year }} (dernière modification le {{ .Lastmod.Day }} {{ index $.Site.Data.months_fr (printf "%d" .Lastmod.Month) }} {{ .Lastmod.Year }})
|
|
|
|
</time>
|
|
|
|
<h4>{{ .FuzzyWordCount }} mots </h4>
|
|
|
|
</section>
|
|
|
|
{{ with .Params.categories }}
|
|
|
|
<ul>
|
|
|
|
{{ range . }}
|
|
|
|
<li><a href="{{ "categories" | absURL }}/{{ . | urlize }}">{{ . }}</a> </li>
|
|
|
|
{{ end }}
|
|
|
|
</ul>
|
2021-05-11 10:01:24 +02:00
|
|
|
{{ end }}
|
2021-05-21 14:53:35 +02:00
|
|
|
</div>
|
|
|
|
</aside>
|
|
|
|
<!--
|
|
|
|
If the current blog post belongs to a case, we will add a side menu
|
|
|
|
with all other blog posts belonging to that case, emphasis to the current.
|
|
|
|
-->
|
|
|
|
{{ with .CurrentSection.Params.Title }}
|
|
|
|
<aside class="menu">
|
|
|
|
<p class="menu-label">
|
|
|
|
Dans le dossier « {{ . }} »...
|
|
|
|
</p>
|
|
|
|
<ul class="menu-list">
|
|
|
|
{{ $posts := (where $.Site.RegularPages "CurrentSection.Params.Code" "==" $.CurrentSection.Params.Code )}}
|
|
|
|
{{ $postsSorted := (sort $posts "Date" )}}
|
|
|
|
{{ range $postsSorted }}
|
|
|
|
<li><a
|
|
|
|
{{ if eq $.Title .Title }}
|
|
|
|
class="is-active"
|
|
|
|
{{ end }}
|
|
|
|
href="{{ .Permalink }}">{{ .Title }}</a></li>
|
2021-05-19 18:24:05 +02:00
|
|
|
{{ end }}
|
2021-05-21 14:53:35 +02:00
|
|
|
</ul>
|
|
|
|
</aside>
|
|
|
|
{{ end }}
|
|
|
|
<section>
|
2021-05-11 10:01:24 +02:00
|
|
|
<div>
|
2021-05-21 14:53:35 +02:00
|
|
|
<article>
|
|
|
|
{{ .Content }}
|
|
|
|
</article>
|
2021-05-11 10:01:24 +02:00
|
|
|
</div>
|
2021-05-21 14:53:35 +02:00
|
|
|
</section>
|
|
|
|
<aside>
|
|
|
|
<div>
|
|
|
|
{{ with .PrevInSection }}
|
|
|
|
<a class="previous" href="{{ .Permalink }}"> {{ .Title }}</a>
|
|
|
|
{{ end }}
|
|
|
|
{{ with .NextInSection }}
|
|
|
|
<a class="next" href="{{ .Permalink }}"> {{ .Title }}</a>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
</aside>
|
|
|
|
</div>
|
2021-05-11 10:01:24 +02:00
|
|
|
{{ end }}
|