Add default landing, blog, and CV templates
This commit is contained in:
17
cv.bryanroessler.com/_includes/nav.html
Normal file
17
cv.bryanroessler.com/_includes/nav.html
Normal file
@@ -0,0 +1,17 @@
|
||||
{% assign navurl = page.url | remove: 'index.html' %}
|
||||
<ul>
|
||||
{% for item in include.nav %}
|
||||
<li>
|
||||
<a href="{{ item.url }}">
|
||||
{% if item.url == navurl %}
|
||||
<b>{{ item.text }}</b>
|
||||
{% else %}
|
||||
{{ item.text }}
|
||||
{% endif %}
|
||||
</a>
|
||||
</li>
|
||||
{% if item.subitems and navurl contains item.url %}
|
||||
{% include nav.html nav=item.subitems %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
Reference in New Issue
Block a user