blog/themes/hugo-theme-stack/layouts/partials/sidebar/right.html
Zoness 52e7475203
Some checks are pending
Deploy Hugo / build-deploy (push) Waiting to run
Initial import of Hugo blog
2025-12-19 08:59:52 -06:00

13 lines
532 B
HTML

{{- $scope := default "homepage" .Scope -}}
{{- $context := .Context -}}
{{- with (index .Context.Site.Params.widgets $scope) -}}
<aside class="sidebar right-sidebar sticky">
{{ range $widget := . }}
{{ if templates.Exists (printf "partials/widget/%s.html" .type) }}
{{ partial (printf "widget/%s" .type) (dict "Context" $context "Params" .params) }}
{{ else }}
{{ warnf "Widget %s not found" .type }}
{{ end }}
{{ end }}
</aside>
{{ end }}