diff --git a/templates/partials/head.html b/templates/partials/head.html
index 93178e6..457f653 100644
--- a/templates/partials/head.html
+++ b/templates/partials/head.html
@@ -115,8 +115,16 @@
{%- endif %}
{%- if config.extra.manifest %}
- {%- set posts = get_section(path="posts/_index.md") %}
-
+ {% if config.extra.menu.posts == true %}
+ {% set posts = get_section(path="posts/_index.md") %}
+ {% set raw_posts_config = load_data(path="/posts/_index.md", format="plain") | replace(from="+++", to="") %}
+ {% set posts_config = load_data(literal=raw_posts_config, format="toml") %}
+ {% set post_count = posts.pages | length %}
+ {% if posts_config.paginate_by %}
+ {% set page_count = post_count / posts_config.paginate_by | round(method="ceil") | int | default(value=0) %}
+ {% endif %}
+ {% endif %}
+
{%- endif %}
{%- if page.extra.image %}