1
Files
2025/themes/42/layouts/page.html
2025-11-05 11:39:55 +01:00

33 lines
666 B
HTML

{{ define "main" }}
{{ partial "hero-page.html" . }}
<main>
<article class="article-body">
{{- if eq .Page.Parent.RelPermalink "/interets/liens-interessants/" -}}
{{- else -}}
{{- if .Params.cover -}}
{{- partial "media/render-image.html" (dict
"Page" .Page
"Destination" .Params.cover
) -}}
{{- end -}}
{{- end -}}
{{ with .TableOfContents }}
{{ if gt (len (plainify .)) 0 }}
<div class="stat">
<strong>
Sommaire
</strong>
{{ . | safeHTML }}
</div>
{{ end }}
{{ end }}
{{ .Content }}
{{- partial "asides/keywords.html" . }}
</article>
</main>
{{ end }}