33 lines
812 B
HTML
33 lines
812 B
HTML
{{ define "main" }}
|
|
<main id="main" class="container">
|
|
<header class="post-header">
|
|
<h1 id="title">{{ .Title }}</h1>
|
|
<ul class="post-info">
|
|
<li>Publié le : {{ .Date.Format "2006-01-02" }}</li>
|
|
{{ with .Params.categories }}
|
|
<li>Catégories :
|
|
<ul>
|
|
{{ range . }}
|
|
<li><a href="{{ "categories" | absURL}}/{{ . | urlize }}">{{ . }}</a> </li>
|
|
{{ end }}
|
|
</ul>
|
|
</li>
|
|
{{ end }}
|
|
{{ with .Params.tags }}
|
|
<li>Tags :
|
|
<ul>
|
|
{{ range . }}
|
|
<li> <a href="{{ "tags" | absURL }}/{{ . | urlize }}">{{ . }}</a> </li>
|
|
{{ end }}
|
|
</ul>
|
|
</li>
|
|
{{ end }}
|
|
</ul>
|
|
</header>
|
|
<article id="content">
|
|
{{ .Content }}
|
|
</article>
|
|
</main>
|
|
{{ end }}
|
|
|