diff options
Diffstat (limited to 'python/tamplates/includes/navigation/secondary')
-rw-r--r-- | python/tamplates/includes/navigation/secondary | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/python/tamplates/includes/navigation/secondary b/python/tamplates/includes/navigation/secondary new file mode 100644 index 0000000..a8cdfbd --- /dev/null +++ b/python/tamplates/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 |