{{ define "main" }}

{{ .Title }}

{{- if ne .Layout "static" }} {{- partial "post-info.html" . -}} {{ end }}
{{ if .Params.postimage -}}
{{ .Params.postimagedescription }} {{ if and (.Params.imageLicence) (.Params.imageAuthor) (.Params.imageUrl) }}
{{ .Params.imageLicence }} {{ .Params.imageAuthor }} {{ else if and (.Params.imageAuthor) (.Params.imageUrl) (.Params.imageService) (.Params.imageServiceUrl) }}
Image de {{ .Params.imageAuthor }} sur {{ .Params.imageService }} {{ else if .Params.postimagedescription }}
{{ .Params.postimagedescription }}
{{ end }}
{{ end }} {{ $title := .Title }} {{ if eq $title "Contacts" }} {{ if .Site.Params.online }} {{ partial "online" . }} {{ end }} {{ if .Site.Params.contactsPriv }} {{ partial "perso" . }} {{ end }} {{ end }} {{ if eq $title "Applications" }} {{ .Content -}} {{ partial "apps" . }} {{ end }} {{ if eq $title "À mon sujet" }} {{ .Content -}} {{ partial "me" . }} {{ else }} {{ if ne $title "Applications" }} {{ .Content -}} {{ end }} {{ end }}
{{ end -}}