From 3a5787f7d5ab2c3f03949e576329c6171125ec31 Mon Sep 17 00:00:00 2001 From: Jarrod Millman Date: Tue, 24 Oct 2023 11:56:52 -0700 Subject: [PATCH] Update theme See https://github.com/scientific-python/scientific-python-hugo-theme/pull/311 --- layouts/partials/post_meta.html | 6 +++--- themes/scientific-python-hugo-theme | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/layouts/partials/post_meta.html b/layouts/partials/post_meta.html index d872844c..fba9b918 100644 --- a/layouts/partials/post_meta.html +++ b/layouts/partials/post_meta.html @@ -1,11 +1,11 @@ -{{- $root := .context -}} +{{- $root := . -}} {{ if eq .CurrentSection.Title "SPEC Core Projects" }} {{- partial "post_meta/project_meta.html" $root }} -{{ else if eq .context.Section "specs" }} +{{ else if eq .Section "specs" }} {{- partial "post_meta/spec_meta.html" $root }} {{ else }} - {{- with .context.Param "post_meta" -}} + {{- with .Param "post_meta" -}} {{- range $field := . -}} {{- $p := printf "post_meta/%s.html" $field -}} {{- partial $p $root -}} diff --git a/themes/scientific-python-hugo-theme b/themes/scientific-python-hugo-theme index dc3f6c61..743b2ec6 160000 --- a/themes/scientific-python-hugo-theme +++ b/themes/scientific-python-hugo-theme @@ -1 +1 @@ -Subproject commit dc3f6c61ca0bc76e9f2bec16908ff148ab724083 +Subproject commit 743b2ec6efb052ad5b8528bd7a54ebc52591b2fb