Project: Sort navigation links
See T56813
This commit is contained in:
parent
88c0ef0e7c
commit
e5b7905a5c
@ -26,7 +26,12 @@ include ../mixins/components
|
||||
span {{ project.name }}
|
||||
| {% endif %}
|
||||
|
||||
| {% if project.nodes_featured and (title !='project') %}
|
||||
| {% for link in navigation_links %}
|
||||
+nav-secondary-link(href="{{ link['url'] }}")
|
||||
| {{ link['label'] }}
|
||||
| {% endfor %}
|
||||
|
||||
| {% if project.nodes_featured %}
|
||||
| {# In some cases featured_nodes might might be embedded #}
|
||||
| {% if '_id' in project.nodes_featured[0] %}
|
||||
| {% set featured_node_id=project.nodes_featured[0]._id %}
|
||||
@ -40,9 +45,4 @@ include ../mixins/components
|
||||
span Explore
|
||||
| {% endif %}
|
||||
|
||||
| {% for link in navigation_links %}
|
||||
+nav-secondary-link(href="{{ link['url'] }}")
|
||||
| {{ link['label'] }}
|
||||
| {% endfor %}
|
||||
|
||||
| {% endmacro %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user