blog/themes/chosto/layouts/posts/single.html

38 lines
1.2 KiB
HTML
Raw Normal View History

2021-05-11 10:01:24 +02:00
{{ define "main" }}
<aside id="meta">
<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>
2021-05-18 15:29:05 +02:00
<h4 id="wordcount"> {{ .FuzzyWordCount }} mots </h4>
2021-05-11 10:01:24 +02:00
</section>
{{ with .Params.categories }}
<ul id="categories">
{{ range . }}
2021-05-18 16:22:28 +02:00
<li><a href="{{ "categories" | absURL }}/{{ . | urlize }}">{{ . }}</a> </li>
2021-05-11 10:01:24 +02:00
{{ end }}
</ul>
{{ end }}
</div>
</aside>
<section id="main">
<h1 id="title">{{ .Title }}</h1>
<div>
<article id="content">
{{ .Content }}
</article>
</div>
</section>
<aside id="prev_next">
2021-05-11 10:01:24 +02:00
<div>
{{ with .PrevInSection }}
2021-05-18 16:22:28 +02:00
<a class="previous" href="{{ .Permalink }}"> {{ .Title }}</a>
2021-05-11 10:01:24 +02:00
{{ end }}
{{ with .NextInSection }}
2021-05-18 16:22:28 +02:00
<a class="next" href="{{ .Permalink }}"> {{ .Title }}</a>
2021-05-11 10:01:24 +02:00
{{ end }}
</div>
</aside>
{{ end }}