refactor: migrate to new template system introduced in Hugo v0.146.0 (#1232)

See: https://gohugo.io/templates/new-templatesystem-overview/
This commit is contained in:
Jimmy
2026-01-25 22:42:00 +01:00
committed by GitHub
parent 633c8c6b9f
commit 5f1ab2bc76
71 changed files with 1 additions and 1 deletions
@@ -3,7 +3,7 @@
{{- with (index .Context.Site.Params.widgets $scope) -}} {{- with (index .Context.Site.Params.widgets $scope) -}}
<aside class="sidebar right-sidebar sticky"> <aside class="sidebar right-sidebar sticky">
{{ range $widget := . }} {{ range $widget := . }}
{{ if templates.Exists (printf "partials/widget/%s.html" .type) }} {{ if templates.Exists (printf "_partials/widget/%s.html" .type) }}
<!-- Ensure that the `params` is not nil --> <!-- Ensure that the `params` is not nil -->
{{- $params := default dict .params -}} {{- $params := default dict .params -}}