From e5b7905a5c4ae9762c8d81bb394aa8aba47ded0f Mon Sep 17 00:00:00 2001 From: Pablo Vazquez Date: Sat, 15 Sep 2018 22:11:53 +0200 Subject: [PATCH] Project: Sort navigation links See T56813 --- src/templates/projects/_macros.pug | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/templates/projects/_macros.pug b/src/templates/projects/_macros.pug index 581f4bb6..61d1d702 100644 --- a/src/templates/projects/_macros.pug +++ b/src/templates/projects/_macros.pug @@ -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 %}