Skip to content

Instantly share code, notes, and snippets.

View xupyprmv's full-sized avatar

Vladimir Maksimenko xupyprmv

View GitHub Profile
@xupyprmv
xupyprmv / navigation.html
Created January 20, 2016 11:51
Nested Jekyll page navigation without plugins
{% capture html %}
<ul>
{% if include.context == "/" %}
<li class="{% if page.url == "/" %}active{% endif %}">
<a href="{{ site.baseurl }}/">{{ site.title }}</a>
</li>
{% endif %}
{% assign entries = site.pages | sort: "path" %}
{% for entry in entries %}