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:
@@ -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 -}}
|
||||||
|
|
||||||
Reference in New Issue
Block a user