Exposed .css hyperlinks in /#menu
Closed this issue · 2 comments
milesgratz commented
milesgratz commented
Potential solution:
- Make nav-menu a required property in the .md files
- Update
\_includes\header.html
to add logic for nav-menu
Before:
{% for page in site.pages %}
{% if page.layout != "home"}
<li><a href="{{ page.url | absolute_url }}">{{ page.title }}</a></li>
{% endif %}
{% endfor %}
After:
{% for page in site.pages %}
{% if page.layout != "home" and page.nav-menu == true %}
<li><a href="{{ page.url | absolute_url }}">{{ page.title }}</a></li>
{% endif %}
{% endfor %}
andrewbanchich commented
@milesgratz nice catch! i just pushed this fix to master on gitlab, so it should be on github soon. sorry for the late response.
thanks!