Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e04af74

Browse files
committed
Hide pages created by redirect-from plugin (fixes #5)
1 parent f8f8095 commit e04af74

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

_includes/header.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,15 @@ <h1 class="logo"><a href="/">ZeroVM</a></h1>
1212
<ul class="clearfix">
1313
{% assign sorted_pages = site.pages | where: 'layout', 'sub-page' | sort: 'order' %}
1414
{% for p in sorted_pages %}
15+
<!-- The redirect-from plugin creates title-less pages that
16+
we want to exclude -->
17+
{% if p.title != nil %}
1518
<li>
1619
<a href="{{ p.url }}" class="{% if p.url == page.url %} active {% endif %}">
1720
{{ p.title }}
1821
</a>
1922
</li>
23+
{% endif %}
2024
{% endfor %}
2125
<li><a href="http://docs.zerovm.org">Documentation</a></li>
2226
<li><a href="http://blog.zerovm.org">Blog</a></li>

0 commit comments

Comments
 (0)