Updated support views to represent new url structure

This commit is contained in:
chrisw
2017-11-28 12:00:12 +00:00
parent 6b98e62f4c
commit 90e18e04ee
12 changed files with 61 additions and 139 deletions

View File

@@ -1,24 +1,24 @@
{% macro sub_navigation(
item_set
) %}
<nav class="sub-navigation">
<ol itemscope itemtype="http://schema.org/ItemList">
{% for item in item_set %}
<li class="sub-navigation__item {% if item['link'] == request.endpoint %} sub-navigation__item--active {% endif %}"
itemprop="itemListElement"
itemscope
itemtype="http://schema.org/ListItem"
>
<a href="{% if item['external_link'] %}
{{ item['link'] }}
{% else %}
{{ url_for(item['link']) }}
{% endif %}"
itemprop="item">
<span itemprop="name">{{item['name']}}</span>
</a>
</li>
{% endfor %}
</ol>
</nav>
<nav class="sub-navigation">
<ol itemscope itemtype="http://schema.org/ItemList">
{% for item in item_set %}
<li class="sub-navigation__item {% if item['link'] == request.endpoint %} sub-navigation__item--active {% endif %}"
itemprop="itemListElement"
itemscope
itemtype="http://schema.org/ListItem"
>
<a href="{%- if item['external_link'] -%}
{{ item['link'] }}
{%- else -%}
{{ url_for(item['link']) }}
{%- endif -%}"
itemprop="item">
<span itemprop="name">{{item['name']}}</span>
</a>
</li>
{% endfor %}
</ol>
</nav>
{% endmacro %}