From 9a702202e236459f58e429f372c261bf0b66147a Mon Sep 17 00:00:00 2001 From: Christophe Siraut Date: Thu, 19 Sep 2024 15:03:29 +0200 Subject: [PATCH] radiocampus/public: add secondary links --- radiocampus/templates/aircox/public.html | 33 ++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 radiocampus/templates/aircox/public.html 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 %}