diff --git a/radiocampus/templates/aircox/public.html b/radiocampus/templates/aircox/public.html new file mode 100644 index 0000000..333d19c --- /dev/null +++ b/radiocampus/templates/aircox/public.html @@ -0,0 +1,33 @@ +{% extends "./base.html" %} +{% load aircox %} + + +{% comment %} +Override is a trick here: it allows to change title at two different different +places inside the page: inside `` tag, and inside the page +content. +{% endcomment %} + +{% block head-title %} + {% block title %} + {% if page and page.title %}{{ page.title }}{% endif %} + {% endblock %} + {% if page and page.title %}—{% endif %} + {{ station.name }} +{% endblock %} + +{% block header %}{% if page %}{{ block.super }}{% endif %}{% endblock %} + +{% block secondary-nav %} +{% if not parent and categories %} +{% else %} +<nav class="nav secondary"> + <div class="nav-menu nav-categories"> + {% nav_items "secondary" css_class="nav-item" active_class="active" as items %} + {% for item, render in items %} + {{ render }} + {% endfor %} + </div> +</nav> +{% endif %} +{% endblock %}