From 10b89de940964e718287adb241bb914d4c7ab8b6 Mon Sep 17 00:00:00 2001 From: Emil Miler Date: Thu, 5 Nov 2020 17:54:27 +0100 Subject: [PATCH] =?UTF-8?q?Makro=20a=20shortcode=20pro=20generov=C3=A1n?= =?UTF-8?q?=C3=AD=20navigace?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/macros.html | 15 +++++++++++++++ templates/shortcodes/nav.html | 2 ++ 2 files changed, 17 insertions(+) create mode 100644 templates/macros.html create mode 100644 templates/shortcodes/nav.html diff --git a/templates/macros.html b/templates/macros.html new file mode 100644 index 0000000..bbdcabc --- /dev/null +++ b/templates/macros.html @@ -0,0 +1,15 @@ +{% macro nav(type) %} + {% if config.extra.nav %} + + {% endif %} +{% endmacro nav %} diff --git a/templates/shortcodes/nav.html b/templates/shortcodes/nav.html new file mode 100644 index 0000000..8773e9b --- /dev/null +++ b/templates/shortcodes/nav.html @@ -0,0 +1,2 @@ +{% import "macros.html" as macros %} +{{ macros::nav(type=type) }}