diff --git a/content/blog/_index.md b/content/blog/_index.md index 7eeaa0d..f9f8721 100644 --- a/content/blog/_index.md +++ b/content/blog/_index.md @@ -3,13 +3,12 @@ title: Blog mainType: https://schema.org/Blog itemsType: https://schema.org/BlogPosting" itemprop="blogPost cascade: - params: - images: - - images - audio: - - audio + images: + - images + audio: + - audio videos: - - videos - _build: - publishResources: false + - videos + _build: + publishResources: false --- diff --git a/layouts/cv/organisations/section.html b/layouts/cv/organisations/section.html index 65519e0..c77b8f3 100644 --- a/layouts/cv/organisations/section.html +++ b/layouts/cv/organisations/section.html @@ -3,115 +3,7 @@ {{ .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-class" }}--section layouts-cv-organisations-section{{ end }} {{ define "main-header" }} {{ if .IsDescendant ( .GetPage "/cv/organisations" ) }} @@ -140,40 +32,11 @@ {{ 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" . }} + {{ with .GetPage "cv/organisations" }} + {{ partial "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 b078f26..312ff5a 100644 --- a/layouts/cv/section.html +++ b/layouts/cv/section.html @@ -13,7 +13,103 @@ {{ end }} {{ define "footer-scripts" }} - {{ if ( not ( .IsDescendant ( .GetPage "/cv/organisations" ) ) ) }} + {{ if .IsDescendant ( .GetPage "/cv/organisations" ) }} + {{ $titles := .Scratch.Get "titles" }} + + {{- else -}} {{ $js := resources.Get "js/roles-chart.js" | resources.ExecuteAsTemplate "/js/render-roles-timeline.js" ( .GetPage "cv/roles" ) | resources.Fingerprint }} {{- end -}}