feat: Add blog part
This commit is contained in:
15
layouts/blog/single.html
Normal file
15
layouts/blog/single.html
Normal file
@ -0,0 +1,15 @@
|
||||
{{ define "main" }}
|
||||
<center><small><i>
|
||||
Publié le <time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date | time.Format ":date_full" }}</time>{{ if isset .Params "auteur" }} - {{ .Params.auteur }}{{ end }}
|
||||
</i></small></center>
|
||||
{{ .Content }}
|
||||
<aside>
|
||||
<hr>
|
||||
<p>Lire les articles précédent et suivant :</p>
|
||||
<ul>
|
||||
<li>Suivant : {{ with .NextInSection }}{{ partial "article-link" . }}{{ else }}Vous êtes sur notre article le plus récent 😇{{ end }}</li>
|
||||
<li>Précedent : {{ with .PrevInSection }}{{ partial "article-link" . }}{{ else }}Vous êtes sur notre premier article 😇{{ end }}</li>
|
||||
</ul>
|
||||
</aside>
|
||||
|
||||
{{ end }}
|
Reference in New Issue
Block a user