From 4e4b470915171a5855f3f2ea25851995aace8b55 Mon Sep 17 00:00:00 2001 From: James Panther <4462786+jpanther@users.noreply.github.com> Date: Sun, 22 Jun 2025 11:10:09 +1000 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=20Fix=20for=20templating=20chan?= =?UTF-8?q?ges=20in=20Hugo=20v0.146.0=20or=20later?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #1049 --- CHANGELOG.md | 1 + layouts/_default/baseof.html | 8 ++++---- layouts/index.html | 4 ++-- layouts/shortcodes/figure.html | 2 +- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 765495e..fa07729 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ### Fixed - Shortcodes placed after code blocks with line numbers are rendered with incorrect spacing ([#987](https://github.com/jpanther/congo/issues/987)) +- Error building site due to template system changes in Hugo v0.146.0 or later ([#1049](https://github.com/jpanther/congo/issues/1049)) ## [2.11.0] - 2025-02-24 diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 28c8daf..035c2c8 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,5 +1,5 @@ -{{- partial "partials/functions/warnings.html" .Site -}} -{{- partial "partials/functions/init.html" . -}} +{{- partial "functions/warnings.html" .Site -}} +{{- partial "functions/init.html" . -}} {{ i18n "nav.skip_to_main" }} - {{ $header := print "partials/header/" .Site.Params.header.layout ".html" }} + {{ $header := print "header/" .Site.Params.header.layout ".html" }} {{ if templates.Exists $header }} {{ partial $header . }} {{ else }} - {{ partial "partials/header/basic.html" . }} + {{ partial "header/basic.html" . }} {{ end }}