Switch theme

This commit is contained in:
2023-11-25 23:04:28 -05:00
Unverified
parent 5dd1fb3021
commit 90772b6e79
7617 changed files with 52094 additions and 46291 deletions

View File

@@ -0,0 +1,13 @@
{{- $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 }}