diff --git a/templates/partials/main_page_posts_list.html b/templates/partials/main_page_posts_list.html
index 3c138a7..0d62f03 100644
--- a/templates/partials/main_page_posts_list.html
+++ b/templates/partials/main_page_posts_list.html
@@ -1,18 +1,20 @@
-
-
- {{ macros_page_header::page_header(title=section.title) }}
-
+{%- if paginator or extra_section -%}
+
+
+ {{ macros_page_header::page_header(title=section.title) }}
+
- {%- if paginator %}
- {%- set pages = paginator.pages -%}
- {% else %}
- {%- set pages = extra_section.pages -%}
- {% endif -%}
+ {%- if paginator %}
+ {%- set pages = paginator.pages -%}
+ {% else %}
+ {%- set pages = extra_section.pages -%}
+ {% endif -%}
- {% set max_posts = section.extra.max_posts | default(value=999999) %}
- {{ macros_list_posts::list_posts(posts=pages, max=max_posts, language_strings=language_strings, section_path=path) }}
-
+ {% set max_posts = section.extra.max_posts | default(value=999999) %}
+ {{ macros_list_posts::list_posts(posts=pages, max=max_posts, language_strings=language_strings, section_path=path) }}
+
-{% if paginator %}
- {%- include "partials/paginate.html" -%}
-{% endif %}
+ {% if paginator %}
+ {%- include "partials/paginate.html" -%}
+ {% endif %}
+{%- endif -%}
diff --git a/templates/section.html b/templates/section.html
index 7fda406..34802c6 100644
--- a/templates/section.html
+++ b/templates/section.html
@@ -9,7 +9,11 @@
{%- set first_section = "posts" -%}
{%- endif -%}
-