diff --git a/layouts/cv/organisations/section.html b/layouts/cv/organisations/section.html
index c77b8f3..65519e0 100644
--- a/layouts/cv/organisations/section.html
+++ b/layouts/cv/organisations/section.html
@@ -3,7 +3,115 @@
{{ .Site.Title }}
{{ end }}
-{{ define "main-class" }}--section layouts-cv-organisations-section{{ 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" ) }}
@@ -32,11 +140,40 @@
{{ end }}
{{ define "main-body" }}
- {{ with .GetPage "cv/organisations" }}
- {{ partial "cv/organisations/organisations-table.html" . }}
+ {{ 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 }}
diff --git a/layouts/cv/section.html b/layouts/cv/section.html
index 312ff5a..b078f26 100644
--- a/layouts/cv/section.html
+++ b/layouts/cv/section.html
@@ -13,103 +13,7 @@
{{ end }}
{{ define "footer-scripts" }}
- {{ if .IsDescendant ( .GetPage "/cv/organisations" ) }}
- {{ $titles := .Scratch.Get "titles" }}
-
- {{- else -}}
+ {{ 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 -}}