right.html 532 B

12345678910111213
  1. {{- $scope := default "homepage" .Scope -}}
  2. {{- $context := .Context -}}
  3. {{- with (index .Context.Site.Params.widgets $scope) -}}
  4. <aside class="sidebar right-sidebar sticky">
  5. {{ range $widget := . }}
  6. {{ if templates.Exists (printf "partials/widget/%s.html" .type) }}
  7. {{ partial (printf "widget/%s" .type) (dict "Context" $context "Params" .params) }}
  8. {{ else }}
  9. {{ warnf "Widget %s not found" .type }}
  10. {{ end }}
  11. {{ end }}
  12. </aside>
  13. {{ end }}