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 %} +