I'm using Jekyll paginate plugin to create multiple pages for my blog. To make sure pagination works I have created a separate directory called blog with an index.html file. In the front matter of this index.html file I specify the layout, title and order:
---
layout: default
title: Blog
order: 8
---
The title value is picked up by Jekyll and used to create a menu entry called "Blog" on the main page of my website. However, once pagination is enabled and all the posts are split into multiple pages, each page will have a title "Blog". This will result in multiple menu entries "Blog". I would like to have only one menu item call "Blog".
I have tried to reset the page title to "empty" for additional pages created by paginator by inserting this code into the index.html:
{% if paginator.page > 1 %}
{% assign page.title = '' %}
{% endif %}
It seems page.title is not a variable, but an object. Therefore, the assignment was not effective.