From 325f2527d713fdc8958ddf63703f59a3f39bb794 Mon Sep 17 00:00:00 2001 From: Emil Miler Date: Sun, 14 Feb 2021 22:56:27 +0100 Subject: [PATCH] =?UTF-8?q?Generov=C3=A1n=C3=AD=20subsekc=C3=AD=20v=20navi?= =?UTF-8?q?gaci=20pomoc=C3=AD=20makra?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.toml | 8 +++--- content/katedra/_index.md | 4 +++ content/katedra/galerie/_index.md | 4 +++ content/katedra/sidlo-pracoviste/_index.md | 4 +++ content/katedra/ucebny/_index.md | 4 +++ content/katedra/zamestnanci/_index.md | 4 +++ content/studenti/_index.md | 4 +++ content/studenti/formulare/_index.md | 4 +++ content/uchazeci/_index.md | 4 +++ content/uchazeci/prijimaci_rizeni/_index.md | 4 +++ content/vedecka-cinnost/_index.md | 4 +++ templates/base.html | 2 +- templates/macros.html | 27 ++++++++++++++++++--- 13 files changed, 69 insertions(+), 8 deletions(-) create mode 100644 content/katedra/_index.md create mode 100644 content/katedra/galerie/_index.md create mode 100644 content/katedra/sidlo-pracoviste/_index.md create mode 100644 content/katedra/ucebny/_index.md create mode 100644 content/katedra/zamestnanci/_index.md create mode 100644 content/studenti/_index.md create mode 100644 content/studenti/formulare/_index.md create mode 100644 content/uchazeci/_index.md create mode 100644 content/uchazeci/prijimaci_rizeni/_index.md create mode 100644 content/vedecka-cinnost/_index.md diff --git a/config.toml b/config.toml index 4f13512..4b7c77a 100644 --- a/config.toml +++ b/config.toml @@ -8,10 +8,10 @@ build_search_index = false [extra] nav_primary = [ - {path = "", name = "Katedra"}, - {path = "", name = "Uchazeči"}, - {path = "", name = "Studenti"}, - {path = "", name = "Vědecká činnost"} + {path = "katedra", name = "Katedra"}, + {path = "uchazeci", name = "Uchazeči"}, + {path = "studenti", name = "Studenti"}, + {path = "vedecka-cinnost", name = "Vědecká činnost"} ] nav_secondary = [ diff --git a/content/katedra/_index.md b/content/katedra/_index.md new file mode 100644 index 0000000..9dae944 --- /dev/null +++ b/content/katedra/_index.md @@ -0,0 +1,4 @@ ++++ +title = "Katedra" ++++ + diff --git a/content/katedra/galerie/_index.md b/content/katedra/galerie/_index.md new file mode 100644 index 0000000..71ef129 --- /dev/null +++ b/content/katedra/galerie/_index.md @@ -0,0 +1,4 @@ ++++ +title = "Galerie" ++++ + diff --git a/content/katedra/sidlo-pracoviste/_index.md b/content/katedra/sidlo-pracoviste/_index.md new file mode 100644 index 0000000..a83885d --- /dev/null +++ b/content/katedra/sidlo-pracoviste/_index.md @@ -0,0 +1,4 @@ ++++ +title = "Sídlo pracoviště" ++++ + diff --git a/content/katedra/ucebny/_index.md b/content/katedra/ucebny/_index.md new file mode 100644 index 0000000..0c3b0f3 --- /dev/null +++ b/content/katedra/ucebny/_index.md @@ -0,0 +1,4 @@ ++++ +title = "Učebny" ++++ + diff --git a/content/katedra/zamestnanci/_index.md b/content/katedra/zamestnanci/_index.md new file mode 100644 index 0000000..0bddb49 --- /dev/null +++ b/content/katedra/zamestnanci/_index.md @@ -0,0 +1,4 @@ ++++ +title = "Zaměstnanci" ++++ + diff --git a/content/studenti/_index.md b/content/studenti/_index.md new file mode 100644 index 0000000..f9e32e2 --- /dev/null +++ b/content/studenti/_index.md @@ -0,0 +1,4 @@ ++++ +title = "Studenti" ++++ + diff --git a/content/studenti/formulare/_index.md b/content/studenti/formulare/_index.md new file mode 100644 index 0000000..51775ae --- /dev/null +++ b/content/studenti/formulare/_index.md @@ -0,0 +1,4 @@ ++++ +title = "Formuláře" ++++ + diff --git a/content/uchazeci/_index.md b/content/uchazeci/_index.md new file mode 100644 index 0000000..aa14cae --- /dev/null +++ b/content/uchazeci/_index.md @@ -0,0 +1,4 @@ ++++ +title = "Uchazeči" ++++ + diff --git a/content/uchazeci/prijimaci_rizeni/_index.md b/content/uchazeci/prijimaci_rizeni/_index.md new file mode 100644 index 0000000..39e97bc --- /dev/null +++ b/content/uchazeci/prijimaci_rizeni/_index.md @@ -0,0 +1,4 @@ ++++ +title = "Přijímací řízení" ++++ + diff --git a/content/vedecka-cinnost/_index.md b/content/vedecka-cinnost/_index.md new file mode 100644 index 0000000..f1bd1d3 --- /dev/null +++ b/content/vedecka-cinnost/_index.md @@ -0,0 +1,4 @@ ++++ +title = "Vědecká činnost" ++++ + diff --git a/templates/base.html b/templates/base.html index d0e1747..ed50181 100644 --- a/templates/base.html +++ b/templates/base.html @@ -20,7 +20,7 @@ {{ macro::nav_list_items(items=config.extra.nav_secondary) }} diff --git a/templates/macros.html b/templates/macros.html index 9ac810f..78c3656 100644 --- a/templates/macros.html +++ b/templates/macros.html @@ -6,7 +6,28 @@ {% endfor %} {% endif %} -{% endmacro list_items %} +{% endmacro %} + +{% macro nav_list_items_recursive(items) %} + {% if items %} + + {% endif %} +{% endmacro %} {% macro breadcrumbs(page) %} -{% endmacro breadcrumbs %} +{% endmacro %} {% macro list_posts(section) %} {% for post in section.pages %} @@ -56,4 +77,4 @@ {% endfor %} -{% endmacro list_posts %} +{% endmacro %}