diff options
Diffstat (limited to 'python/tamplates/includes/navigation')
-rw-r--r-- | python/tamplates/includes/navigation/primary | 9 | ||||
-rw-r--r-- | python/tamplates/includes/navigation/secondary | 12 | ||||
-rw-r--r-- | python/tamplates/includes/navigation/sitemap_secondary | 5 | ||||
-rw-r--r-- | python/tamplates/includes/navigation/tertiary | 12 |
4 files changed, 38 insertions, 0 deletions
diff --git a/python/tamplates/includes/navigation/primary b/python/tamplates/includes/navigation/primary new file mode 100644 index 0000000..c5d86e6 --- /dev/null +++ b/python/tamplates/includes/navigation/primary @@ -0,0 +1,9 @@ +{% for node in pages %} + {% if node.nav1_show %}{% if node.nav1 != 'donate' %} + {% if page.nav1 == node.nav1 %} + <li class="active"><a href="/{{ node.url }}/" class="active">{% if node.nav_title %}{{ node.nav_title }}{% else %}{{node.title}}{% endif %}</a></li> + {% else %} + <li><a href="/{{ node.url }}/">{% if node.nav_title %}{{ node.nav_title }}{% else %}{{node.title}}{% endif %}</a></li> + {% endif %} + {% endif %}{% endif %} +{% endfor %} 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 diff --git a/python/tamplates/includes/navigation/sitemap_secondary b/python/tamplates/includes/navigation/sitemap_secondary new file mode 100644 index 0000000..f7b5379 --- /dev/null +++ b/python/tamplates/includes/navigation/sitemap_secondary @@ -0,0 +1,5 @@ +{% for node in smappages %} + {% if page.PageId == node.PageId.PageId %} + <li><a href="{{node.url }}">{% if node.nav_title %}{{ node.nav_title }}{% else %}{{node.title}}{% endif %}</a></li> + {% endif %} +{% endfor %} diff --git a/python/tamplates/includes/navigation/tertiary b/python/tamplates/includes/navigation/tertiary new file mode 100644 index 0000000..500c358 --- /dev/null +++ b/python/tamplates/includes/navigation/tertiary @@ -0,0 +1,12 @@ +{% assign pages_list2 = pages_list | sort:"nav3-weight" %} +{% for node in pages_list2 %} + {% if page.nav1 == node.nav1 and page.nav2 == node.nav2 and node.nav3-show == true %} + {% if page.nav3 == node.nav3 %} + <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 |