43 lines
1.3 KiB
HTML
43 lines
1.3 KiB
HTML
{{ define "main" }}
|
|
<section id="main">
|
|
<h1 id="title">{{ .Title }}</h1>
|
|
<div>
|
|
<article id="content">
|
|
{{ .Content }}
|
|
</article>
|
|
</div>
|
|
</section>
|
|
<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>
|
|
<h4 id="wordcount"> {{ .FuzzyWordCount }} mots </h4>
|
|
</section>
|
|
{{ with .Params.categories }}
|
|
<ul id="categories">
|
|
{{ range . }}
|
|
<li><a href="{{ "categories" | absURL}}/{{ . | urlize }}">{{ . }}</a> </li>
|
|
{{ end }}
|
|
</ul>
|
|
{{ end }}
|
|
{{ with .Params.tags }}
|
|
<ul id="tags">
|
|
{{ range . }}
|
|
<li> <a href="{{ "tags" | absURL }}/{{ . | urlize }}">{{ . }}</a> </li>
|
|
{{ end }}
|
|
</ul>
|
|
{{ end }}
|
|
</div>
|
|
<div>
|
|
{{ with .PrevInSection }}
|
|
<a class="previous" href="{{.Permalink}}"> {{.Title}}</a>
|
|
{{ end }}
|
|
{{ with .NextInSection }}
|
|
<a class="next" href="{{.Permalink}}"> {{.Title}}</a>
|
|
{{ end }}
|
|
</div>
|
|
</aside>
|
|
{{ end }}
|