Navigation: Films -> Open Projects

And show navigation when in the Blog
This commit is contained in:
Pablo Vazquez 2018-09-19 19:33:01 +02:00
parent 186ba167f1
commit d347ddac2c
2 changed files with 9 additions and 0 deletions

View File

@ -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 %}

View File

@ -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 %}