Gestion et affichage des liens morts
This commit is contained in:
34
themes/42/layouts/liens-morts/single.html
Normal file
34
themes/42/layouts/liens-morts/single.html
Normal file
@@ -0,0 +1,34 @@
|
||||
{{ 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 "liens-morts/report.html" (dict "Page" .) -}}
|
||||
|
||||
{{- partial "asides/keywords.html" . }}
|
||||
</article>
|
||||
</main>
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user