Header links to pages which have a title

Header used to add link to all pages of the site, even those which do not have any title, creating empty anchors on the page like `<a class="page-link" href="/feed.xml"></a>`. Those were non click-able and used space on the page due to margins.

Now only displays pages with a title.
This commit is contained in:
Mathieu Bruyen 2014-05-15 08:59:29 +02:00
parent 8fc1e4b5ea
commit a38ea51994
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@
</a>
<div class="trigger">
{% for page in site.pages %}
<a class="page-link" href="{{ page.url | prepend: site.baseurl }}">{{ page.title }}</a>
{% if page.title %}<a class="page-link" href="{{ page.url | prepend: site.baseurl }}">{{ page.title }}</a>{% endif %}
{% endfor %}
</div>
</nav>