31 lines
766 B
HTML
31 lines
766 B
HTML
{{ define "main" }}
|
|
<section id="main">
|
|
<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 :</li>
|
|
<ul>
|
|
{{ range . }}
|
|
<li><a href="{{ "categories" | absURL}}/{{ . | urlize }}">{{ . }}</a> </li>
|
|
{{ end }}
|
|
</ul>
|
|
{{ end }}
|
|
{{ with .Params.tags }}
|
|
<li>Tags :</li>
|
|
<ul>
|
|
{{ range . }}
|
|
<li> <a href="{{ "tags" | absURL }}/{{ . | urlize }}">{{ . }}</a> </li>
|
|
{{ end }}
|
|
</ul>
|
|
{{ end }}
|
|
</ul>
|
|
</header>
|
|
<article id="content">
|
|
{{ .Content }}
|
|
</article>
|
|
</section>
|
|
{{ end }}
|
|
|