From d347ddac2c43179033c43a9b5b8cc15fa183d3cb Mon Sep 17 00:00:00 2001 From: Pablo Vazquez Date: Wed, 19 Sep 2018 19:33:01 +0200 Subject: [PATCH] Navigation: Films -> Open Projects And show navigation when in the Blog --- src/templates/nodes/custom/blog/index.pug | 5 +++++ src/templates/projects/_macros.pug | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/src/templates/nodes/custom/blog/index.pug b/src/templates/nodes/custom/blog/index.pug index 4df4c9a2..f8fa4543 100644 --- a/src/templates/nodes/custom/blog/index.pug +++ b/src/templates/nodes/custom/blog/index.pug @@ -1,13 +1,18 @@ | {% extends 'layout.html' %} | {% import 'nodes/custom/blog/_macros.html' as blogmacros %} | {% from 'projects/_macros.html' import render_secondary_navigation %} +| {% from '_macros/_navigation.html' import navigation_homepage %} | {% set title = 'blog' %} | {% block page_title %}Blog{% endblock%} | {% block navigation_tabs %} +| {% if project.url == 'blender-cloud' %} +| {{ navigation_homepage(title) }} +| {% else %} | {{ render_secondary_navigation(project, navigation_links, title) }} +| {% endif %} | {% endblock navigation_tabs %} | {% block body %} diff --git a/src/templates/projects/_macros.pug b/src/templates/projects/_macros.pug index b59555fc..554bbb9f 100644 --- a/src/templates/projects/_macros.pug +++ b/src/templates/projects/_macros.pug @@ -17,7 +17,11 @@ include ../mixins/components | {% if not project.is_private %} li.text-capitalize a.nav-link.text-muted.px-0(href="{{ category_url }}") + | {% if project.category == 'film' %} + span Open Projects + | {% else %} span {{ project.category }}{% if project.category != 'assets' %}s{% endif %} + | {% endif %} li.px-1 i.pi-angle-right | {% endif %}