From 525fda0dc0b7d79cd31b9da782d9f867aba3a3e0 Mon Sep 17 00:00:00 2001 From: Richard Dushime Date: Thu, 12 Mar 2026 01:13:40 +0100 Subject: [PATCH 1/2] fix:compatibility --- layouts/_default/index.json | 3 ++- layouts/partials/toc.html | 2 +- layouts/partials/toc_dei.html | 2 +- layouts/shortcodes/resources.html | 5 ++++- layouts/shortcodes/summaries.html | 2 +- layouts/shortcodes/summaries_dei.html | 2 +- layouts/shortcodes/zotero.html | 5 ++++- .../layouts/partials/marketing/google_analytics.html | 2 +- 8 files changed, 15 insertions(+), 8 deletions(-) diff --git a/layouts/_default/index.json b/layouts/_default/index.json index e8a67e4acab..0e285e4d6be 100644 --- a/layouts/_default/index.json +++ b/layouts/_default/index.json @@ -1,5 +1,6 @@ {{- $.Scratch.Add "index" slice -}} {{- range .Site.RegularPages -}} - {{- $.Scratch.Add "index" (dict "title" .Title "subtitle" .Params.subtitle "description" .Params.description "tags" .Params.tags "image" .Params.image "content" .Plain "permalink" .Permalink .Creators ".Params.Creators") -}} + {{- $creators := index .Params "Creators" | default (index .Params "creators") -}} + {{- $.Scratch.Add "index" (dict "title" .Title "subtitle" .Params.subtitle "description" .Params.description "tags" .Params.tags "image" .Params.image "content" .Plain "permalink" .Permalink "creators" $creators) -}} {{- end -}} {{- $.Scratch.Get "index" | jsonify -}} \ No newline at end of file diff --git a/layouts/partials/toc.html b/layouts/partials/toc.html index c67149371e2..a8e433df32f 100644 --- a/layouts/partials/toc.html +++ b/layouts/partials/toc.html @@ -1,4 +1,4 @@ - {{ $summaries := getJSON "data/summaries.json" }} + {{ $summaries := site.Data.summaries }}