{{ define "title" }} {{ .Page.Title | plainify }} | {{ .Site.Title }} {{ end }} {{ define "main-class" }} {{- if .IsDescendant ( .GetPage "/cv/organisations" ) -}} --single {{- else -}} --section {{- end }} layouts-cv-organisations-section {{- end }} {{ define "header-scripts" }} {{ end }} {{ define "footer-scripts" }} {{ $titles := .Scratch.Get "titles" }} {{ end }} {{ define "main-header" }} {{ if .IsDescendant ( .GetPage "/cv/organisations" ) }}
{{ else }}

{{ .Title | safeHTML }}.

{{- .Content -}}
{{ end }} {{ end }} {{ define "main-body" }} {{ if .IsDescendant ( .GetPage "/cv/organisations" ) }} {{ $titles := slice ( .Title | plainify ) }} {{ with .Sections }} {{ $titles = $titles | append ( partial "cv/organisations/recursive-children-titles.html" . ) }} {{ end }} {{ .Scratch.Set "titles" $titles }}
{{- partial "cv/organisation/description.html" ( dict "content" .Content ) -}} {{- partial "cv/organisation/roles-timeline.html" -}} {{- partial "cv/organisation/related-items.html" ( dict "sc" $ "organisation_titles" ( .Scratch.Get "titles" ) "organisation_title" .Title ) -}}
{{ else }} {{ partialCached "cv/organisations/organisations-table.html" . }} {{ end }} {{ end }} {{ define "main-footer" }} {{ if .IsDescendant ( .GetPage "/cv/organisations" ) }} {{ end }} {{ end }}