{{ define "main-class" }}--section layouts-cv-cv{{ end }} {{ define "header-scripts" }} {{ if ( or ( eq .Type "cv" ) ( .IsDescendant ( .GetPage "/cv/organisations" ) ) ) }} {{ end }} {{ end }} {{ define "footer-scripts" }} {{ if ( not ( .IsDescendant ( .GetPage "/cv/organisations" ) ) ) }} {{ $js := resources.Get "js/roles-chart.js" | resources.ExecuteAsTemplate "/js/render-roles-timeline.js" ( .GetPage "cv/roles" ) | resources.Fingerprint }} {{- end -}} {{ end }} {{ define "main-header" }} {{- .Title | safeHTML -}}. {{ if not ( or ( eq .Type "cv" ) ( eq .Type "cv/organisations" ) ) -}} {{- range .AlternativeOutputFormats -}} {{- end -}} {{- end -}} {{- .Content -}} {{- range ( where .Sections "Type" "not in" ( slice "cv/roles" ) ).ByTitle }} {{- .Title -}} ({{- len (where ( where .Site.Pages "Section" "cv" ) "Parent.Title" .Title ) -}}) {{- end -}} {{- partialCached "cv/timeline-legend.html" . -}} {{ end }} {{ define "main-body" }} Javascript must be enabled to view this chart. {{ end }}
({{- len (where ( where .Site.Pages "Section" "cv" ) "Parent.Title" .Title ) -}})