I am using jekyll-pagination on a site I am working on. I have a loop for a navbar, that loops through the sites pages, and adds them to the navbar. The navbar is picking up the extra paginated pages from the blog, and adding the "Blog" to the navbar over and over again. Is there anyway to only have "Blog" show up once, and the additional blog pages be linked only in the blog?
Here is a grab of the navbar:
Here is the code for the navbar:
<ul class="nav navbar-nav navbar-right">
{% assign mypages = site.pages | sort: "order" %}
{% for page in mypages %}
<li>
<a href="{{ page.url | absolute_url }}">{{ page.title }}</a>
</li>
{% endfor %}
</ul>
