From a36cd008bfce38a27cc02dc1ab1ace212b516f58 Mon Sep 17 00:00:00 2001 From: Emil Miler Date: Sat, 13 Feb 2021 14:16:01 +0100 Subject: [PATCH] =?UTF-8?q?V=C3=BDpis=20polo=C5=BEek=20v=20navigaci=20pomo?= =?UTF-8?q?c=C3=AD=20makra?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/base.html | 17 +++-------------- templates/macros.html | 9 +++++++++ 2 files changed, 12 insertions(+), 14 deletions(-) create mode 100644 templates/macros.html diff --git a/templates/base.html b/templates/base.html index 38efab0..d48c520 100644 --- a/templates/base.html +++ b/templates/base.html @@ -1,3 +1,4 @@ +{% import "macros.html" as macro %} @@ -16,22 +17,10 @@
diff --git a/templates/macros.html b/templates/macros.html new file mode 100644 index 0000000..eaa4ee2 --- /dev/null +++ b/templates/macros.html @@ -0,0 +1,9 @@ +{% macro nav_list_items(items) %} + {% if items %} + + {% endif %} +{% endmacro list_items %}