Téléverser les fichiers vers "Theme-Bento/layouts/_default"
This commit is contained in:
42
Theme-Bento/layouts/_default/single.html
Normal file
42
Theme-Bento/layouts/_default/single.html
Normal file
@ -0,0 +1,42 @@
|
||||
{{ define "main" }}
|
||||
<article class="blog-post">
|
||||
<header class="post-header">
|
||||
<h1>{{ .Title }}</h1>
|
||||
<div class="post-meta">
|
||||
<time>{{ .Date.Format "02 January 2006" }}</time>
|
||||
{{ with .Params.categories }}
|
||||
<div class="categories">
|
||||
{{ range . }}
|
||||
<span class="category">{{ . }}</span>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
</header>
|
||||
|
||||
{{ with .Params.image }}
|
||||
<div class="post-hero">
|
||||
<img src="{{ . }}" alt="{{ $.Title }}">
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
<div class="post-content">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
|
||||
<footer class="post-footer">
|
||||
{{ with .PrevInSection }}
|
||||
<a href="{{ .Permalink }}" class="post-nav prev">
|
||||
<span>← Article précédent</span>
|
||||
<h3>{{ .Title }}</h3>
|
||||
</a>
|
||||
{{ end }}
|
||||
{{ with .NextInSection }}
|
||||
<a href="{{ .Permalink }}" class="post-nav next">
|
||||
<span>Article suivant →</span>
|
||||
<h3>{{ .Title }}</h3>
|
||||
</a>
|
||||
{{ end }}
|
||||
</footer>
|
||||
</article>
|
||||
{{ end }}
|
Reference in New Issue
Block a user