diff --git a/website/doctype/web_page/templates/generators/web_page.html b/website/doctype/web_page/templates/generators/web_page.html
index e7439fd364..2804683f6b 100644
--- a/website/doctype/web_page/templates/generators/web_page.html
+++ b/website/doctype/web_page/templates/generators/web_page.html
@@ -13,6 +13,15 @@
{{ title }}
{%- endif %}
+ {%- endblock %}
+
+ {% include "lib/website/doctype/website_slideshow/templates/includes/slideshow.html" %}
+
+ {{ main_section }}
+
+
+ {# toc, parent, child, next sibling #}
+ {% block post_content -%}
{% if show_toc and toc_list -%}
Contents
@@ -23,15 +32,6 @@
{%- endif %}
- {%- endblock %}
-
- {% include "lib/website/doctype/website_slideshow/templates/includes/slideshow.html" %}
-
- {{ main_section }}
-
-
- {# parent, child, next sibling #}
- {% block post_content -%}
{% if links and links.get("parent") -%}