portfoligor/layouts/_default/single.html

31 lines
766 B
HTML

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