diff --git a/layouts/index.html b/layouts/index.html
index 61d90826..d79d8ced 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -1,4 +1,9 @@
+{{- define "main" -}}
+
{{ if not (isset site.Params "color_theme") }}
{{ errorf "Please complete the installation of Academic by following the steps at https://sourcethemes.com/academic/docs/install/" }}
{{ end }}
+
{{ partial "widget_page.html" . }}
+
+{{- end -}}
diff --git a/layouts/widget_page/single.html b/layouts/widget_page/single.html
index e1d285b7..413b2926 100644
--- a/layouts/widget_page/single.html
+++ b/layouts/widget_page/single.html
@@ -1 +1,5 @@
+{{- define "main" -}}
+
{{ partial "widget_page.html" . }}
+
+{{- end -}}