48 lines
962 B
HTML
48 lines
962 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 }}
|
|
|
|
{{- with .Params.dossier }}
|
|
<aside>
|
|
<div class="panel">
|
|
{{- partial "dossier-summary" $ -}}
|
|
</div>
|
|
</aside>
|
|
{{- end }}
|
|
|
|
{{ partial "oeuvres.html" . }}
|
|
|
|
{{- partial "asides/keywords.html" . }}
|
|
|
|
{{ if .Params.weather }}
|
|
<aside>
|
|
{{- partial "render/weather.html" . -}}
|
|
</aside>
|
|
{{ end }}
|
|
</article>
|
|
</main>
|
|
{{ end }} |