suppressing tag and category meta pages

This commit is contained in:
Holger Reinhardt 2016-01-30 22:10:13 +01:00
parent 30b313a72c
commit eea739c226
6 changed files with 9 additions and 4 deletions

View file

@ -18,13 +18,19 @@
<li> <li>
<a href="{{ site.baseurl }}/">Home</a> <a href="{{ site.baseurl }}/">Home</a>
</li> </li>
{% for page in site.pages %}{% if page.title %} {% for page in site.pages %}
{% if page.title %}
<!-- suppress all category and tag meta pages -->
{% if page.url contains '/meta/'}
{% else %}
{% if page.url != '/404.html' %} {% if page.url != '/404.html' %}
<li> <li>
<a href="{{ page.url | prepend: site.baseurl }}">{{ page.title }}</a> <a href="{{ page.url | prepend: site.baseurl }}">{{ page.title }}</a>
</li> </li>
{% endif %} {% endif %}
{% endif %}{% endfor %} {% endif %}
{% endif %}
{% endfor %}
</ul> </ul>
</div> </div>
<!-- /.navbar-collapse --> <!-- /.navbar-collapse -->

View file

@ -1,6 +1,5 @@
--- ---
layout: page layout: page
description: "A Clean Blog Theme by Start Bootstrap"
--- ---
{% for post in paginator.posts %} {% for post in paginator.posts %}