Files
edition.rechampir/layouts/_default/single.html
yv_pic 1898364ee5 * intégration de "previous page/next page" (single.html)
* mise en commentaire du breadcrumb
* dans config : removePathAccents
* mise en commentaire XMPP
* CSS : typo des liens, taille nav, taille du titre
2021-01-23 17:03:05 +01:00

45 lines
1.5 KiB
HTML

{{ 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 }}
{{ if or (.PrevInSection) (.NextInSection) }}
<div class="next-prev">
<hr>
<div class="g-two-up">
{{with .PrevInSection }}
<div>
<h3>Previous</h3>
<p><a href=" {{ .Permalink }}">{{ .Title | safeHTML }}</a></p>
</div>
{{ end }}
{{with .NextInSection }}
<div>
<h3>Next</h3>
<p><a href=" {{ .Permalink }}">{{ .Title | safeHTML }}</a></p>
</div>
{{ end }}
</div>
</div>
{{ end }}
{{/* partial "breadcrumbs.html" . */}}
</article>
</main>
{{ end }}