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 }}
diff --git a/layouts/index.html b/layouts/index.html index 2feb97a..0398502 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,8 +1,8 @@ {{ define "main" }} - {{ $partial := print "partials/home/" .Site.Params.homepage.layout ".html" }} + {{ $partial := print "home/" .Site.Params.homepage.layout ".html" }} {{ if templates.Exists $partial }} {{ partial $partial . }} {{ else }} - {{ partial "partials/home/page.html" . }} + {{ partial "home/page.html" . }} {{ end }} {{ end }} diff --git a/layouts/shortcodes/figure.html b/layouts/shortcodes/figure.html index 7f0e2ee..0ef6527 100644 --- a/layouts/shortcodes/figure.html +++ b/layouts/shortcodes/figure.html @@ -1,5 +1,5 @@ {{ if .Get "default" }} - {{ template "_internal/shortcodes/figure.html" . }} + {{ template "_shortcodes/figure.html" . }} {{ else }} {{ $url := urls.Parse (.Get "src") }} {{ $altText := .Get "alt" }}