* fil d'Ariane Breadcrumb

* ôter les draft
This commit is contained in:
yv_pic
2020-12-30 15:52:14 +01:00
parent a5c7667d0a
commit 0ad261e5b9
18 changed files with 55 additions and 18 deletions

View File

@@ -0,0 +1,25 @@
{{ define "main" }}
<main>
<article>
{{ if in site.Params.mainSections .Page.Section }}
<h1 class="page-title blog">{{ .Title }}</h1>
{{ else }}
<h1 class="page-title">{{ .Title }}</h1>
{{ end }}
{{- /* Show post information if it's a post, otherwise just the content */ -}}
{{ if in site.Params.mainSections .Page.Section }}
<p class="blog-post-info">Posted: <time>{{ .Date.Format "2006-01-02" }}</time>
{{ partial "blog-taxonomy-info" . }}</p>
<div class="blog-post-content">
{{ .Content }}
</div>
{{ template "_internal/disqus.html" . }}
{{ else }}
{{ .Content }}
{{ end }}
{{ partial "breadcrumbs.html" . }}
</article>
</main>
{{ end }}