diff options
author | Alex Legler <alex@a3li.li> | 2015-04-02 11:09:31 +0200 |
---|---|---|
committer | Alex Legler <alex@a3li.li> | 2015-04-02 11:09:31 +0200 |
commit | b0c622da7c0a8bdabb33d63fd0c2d7c2b9df02ef (patch) | |
tree | ae0ac2aedd349e4e5757200b5017e12f9a2b5b36 /_includes/navigation/secondary | |
download | www-b0c622da7c0a8bdabb33d63fd0c2d7c2b9df02ef.tar.gz www-b0c622da7c0a8bdabb33d63fd0c2d7c2b9df02ef.tar.bz2 www-b0c622da7c0a8bdabb33d63fd0c2d7c2b9df02ef.zip |
Initial version
Diffstat (limited to '_includes/navigation/secondary')
-rw-r--r-- | _includes/navigation/secondary | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/_includes/navigation/secondary b/_includes/navigation/secondary new file mode 100644 index 0000000..a8cdfbd --- /dev/null +++ b/_includes/navigation/secondary @@ -0,0 +1,12 @@ +{% assign pages_list2 = pages_list | sort:"nav2-weight" %} +{% for node in pages_list2 %} + {% if page.nav1 == node.nav1 and node.nav1-show != true and node.nav2-show == true %} + {% if page.nav2 == node.nav2 %} + <li class="active"><a href="{{node.url | replace:'index.html',''}}" class="active">{% if node.navtitle %}{{ node.navtitle }}{% else %}{{node.title}}{% endif %}</a></li> + {% else %} + <li><a href="{{node.url | replace:'index.html',''}}">{% if node.navtitle %}{{ node.navtitle }}{% else %}{{node.title}}{% endif %}</a></li> + {% endif %} + {% endif %} +{% endfor %} +{% assign pages_list = nil %} +{% assign pages_list2 = nil %}
\ No newline at end of file |