{{ define "main" }}

{{- $type := $.Params.type -}} {{- if eq $type "memoire" -}} Mémoire {{- else -}} {{ $.Params.type | title }} {{- end -}}

{{ .Title }}

{{ if ne $.Params.type "enseignement" }} {{- partial "authors.html" . -}} {{ end }}
{{ with .Params.image }}
Image de la recette : {{ $.Params.titre }}
{{ end }}
{{ if eq $.Params.type "enseignement" }}
Intervenant·es
{{- partial "authors.html" . -}}
{{ end }} {{ with .Params.year }}
Année
{{ $.Params.year }}
{{ end }} {{ with .Params.cours }}
Type de cours
{{ $.Params.cours }}
{{ end }} {{ with .Params.section }}
Section
{{ $.Params.section }}
{{ end }}
Mots-clés
{{- partial "tags.html" . -}}
{{ if .Params.description }}

Description

{{ $.Params.description }}

{{ end }}
{{ .Content }}
{{ end }}