diff --git a/content/projekte/hack-n-fun/_index.md b/content/projekte/hack-n-fun/_index.md index 0ea49f161eeccaab69a3176e5bb58b42c6f19de0..68821415ad1a87e92425ec92a4404caf16285783 100644 --- a/content/projekte/hack-n-fun/_index.md +++ b/content/projekte/hack-n-fun/_index.md @@ -2,6 +2,8 @@ title = "Hack'n'Fun" template = "project.html" +weight = 10 + [extra] logo = "artwork/logo-hacknfun.svg" project_slug = "hack-n-fun" diff --git a/content/projekte/indiedact/_index.md b/content/projekte/indiedact/_index.md index c498b7add6e6be6c0031a87313a4f1e6694006fe..bdd2c55d0e1264dc3becc1066772168b39b44231 100644 --- a/content/projekte/indiedact/_index.md +++ b/content/projekte/indiedact/_index.md @@ -2,6 +2,8 @@ title = "Indiedact" template = "project.html" +weight = 30 + [extra] logo = "artwork/logo-leopard.svg" project_slug = "indiedact" diff --git a/content/projekte/schul-frei/_index.md b/content/projekte/schul-frei/_index.md index f6bbae28a8a3fe8df54c89aaa4e3517fe0fd60ed..b5ba5f9d50cea8fa247128c6beb7f0b2e02d7330 100644 --- a/content/projekte/schul-frei/_index.md +++ b/content/projekte/schul-frei/_index.md @@ -2,6 +2,8 @@ title = "schul-frei" template = "project.html" +weight = 20 + [extra] logo = "artwork/logo-schul-frei.svg" project_slug = "schul-frei" diff --git a/templates/menu/projects.html b/templates/menu/projects.html index 5b844640b1a2a61f82d47f62814324305b4ebba4..5f68dc6fd30f5c707aa745e1b8f25dc3cf35a041 100644 --- a/templates/menu/projects.html +++ b/templates/menu/projects.html @@ -1,17 +1,17 @@ -{% set projects = get_taxonomy(kind = "projekt") %} +{% set projects_section = get_section(path="projekte/_index.md") %} <div class="container is-fluid"> <div class="columns"> - {% for project in projects.items %} - <section class="column menu-project-section" id="menu-project-section-{{ project.slug }}"> - {% set section = get_section(path = "projekte/" ~ project.slug ~ - "/_index.md") %} - <h1 class="title is-6 is-mega-menu-title"><a href="{{ section.permalink }}"> - <p> {{ section.title }} </p> - <p class="is-4">{{ section.description }}</p> + {% for project_section_path in projects_section.subsections %} + {% set project_section = get_section(path=project_section_path) %} + {% set project_taxonomy = get_taxonomy_term(kind="projekt", term=project_section.title) %} + <section class="column menu-project-section" id="menu-project-section-{{ project_taxonomy.slug }}"> + <h1 class="title is-6 is-mega-menu-title"><a href="{{ project_section.permalink }}"> + <p> {{ project_section.title }} </p> + <p class="is-4">{{ project_section.description }}</p> </a></h1> - {% for page in project.pages %} + {% for page in project_taxonomy.pages %} <a class="navbar-item" href="{{ page.permalink }}"> <div class="navbar-content">{{ page.title }}</div> </a>