diff --git a/layouts/partials/widget_page.html b/layouts/partials/widget_page.html index 4fbb6100..ffb0dd69 100644 --- a/layouts/partials/widget_page.html +++ b/layouts/partials/widget_page.html @@ -92,6 +92,12 @@ {{ $widget_class := printf "wg-%s" (replace (replace $widget "." "-") "_" "-") }} + {{ $widget_config_file := printf "widgets/%s-config.html" $widget }} + {{ if templates.Exists $widget_config_file }} + {{ $cfg := partial $widget_config_file $widget_args }} + {{ $use_container = $cfg.use_container }} + {{end}} +
{{if $use_container}}
{{end}} {{ partial $widget_path $widget_args }}