Skip to content
Snippets Groups Projects
Commit 25f39bc6 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Merge branch '31-tag-blog-posts-with-projects-target-groups-and-maybe-tags' into 'master'

Resolve "Tag blog posts with projects, target groups, and maybe tags"

Closes #31

See merge request !74
parents 3c1bae81 3cd45631
No related branches found
No related tags found
1 merge request!74Resolve "Tag blog posts with projects, target groups, and maybe tags"
Pipeline #193039 passed
{% set blog_section = get_section(path="blog/_index.md") %} {% set blog_section = get_section(path="blog/_index.md") %}
<section class="section" resource="{{ blog_section.permalink }}" typeof="schema:Blog"> {% include "blog/section.html" %}
<meta property="schema:publisher" href="https://teckids.org/" />
<div class="container">
<h2 class="title is-2">{{ title | default(value="Aus dem Teckids-Blog") }}</h2>
<div class="columns is-multiline is-same-height mt-4">
{% for post in blog_section.pages | slice(end=9) %}
<div class="column is-one-third">
{% include "blog/card.html" %}
</div>
{% endfor %}
</div>
</div>
</section>
...@@ -34,14 +34,7 @@ ...@@ -34,14 +34,7 @@
<div class="navbar-item has-dropdown is-hoverable"> <div class="navbar-item has-dropdown is-hoverable">
<a href="#" class="navbar-item">Teckids-Gemeinschaft</a> <a href="#" class="navbar-item">Teckids-Gemeinschaft</a>
<div class="navbar-dropdown is-boxed"> <div class="navbar-dropdown is-boxed">
{% include "menu/gemeinschaften.html" %} {% include "menu/gemeinschaft.html" %}
</div>
</div>
<div class="navbar-item has-dropdown is-hoverable">
<a href="#" class="navbar-item">Updates</a>
<div class="navbar-dropdown is-boxed">
{% include "menu/updates.html" %}
</div> </div>
</div> </div>
</div> </div>
......
{% set gemeinschaft_section = get_section(path="gemeinschaft/_index.md") %}
<div class="container is-fluid">
<div class="columns">
{% for gemeinschaft_section_path in gemeinschaft_section.subsections %}
{% set gemeinschaft_subsection = get_section(path=gemeinschaft_section_path) %}
<section class="column">
<div class="card p-0 m-0 is-shadowless is-radiusless is-overlay is-flex is-flex-direction-column is-fullheight is-justify-content-space-between">
<div class="card-content p-0 m-0">
<h1 class="title is-6 is-mega-menu-title">
<p> {{ gemeinschaft_subsection.title }} </p>
<p class="is-4">{{ gemeinschaft_subsection.description }}</p>
</h1>
{% for page in gemeinschaft_subsection.pages %}
<a class="navbar-item" href="{{ page.permalink }}">
<div class="navbar-content">{{ page.title }}</div>
</a>
{% endfor %}
</div>
{% if gemeinschaft_subsection.extra.products %}
<div class="card-footer">
{% for product in gemeinschaft_subsection.extra.products %}
<a class="card-footer-item" href="{{ product.link }}">
<span class="icon-text">
<span>{{ product.name }}</span>
<span class="icon"><i class="fa-solid fa-up-right-from-square"></i></span>
</span>
</a>
{% endfor %}
</div>
{% endif %}
</div>
</section>
{% endfor %}
</div>
</div>
{% set gemeinschaften = get_taxonomy(kind = "gemeinschaft") %}
<div class="container is-fluid">
<div class="columns">
{% for gemeinschaft in gemeinschaften.items %}
<section
class="column menu-gemeinschaft-section"
id="menu-gemeinschaft-section-{{ gemeinschaft.slug }}"
>
<h1 class="title is-6 is-mega-menu-title">{{ gemeinschaft.name }}</h1>
{% for page in gemeinschaft.pages %}
<a class="navbar-item" href="{{ page.permalink }}">
<div class="navbar-content">{{ page.title }}</div>
</a>
{% endfor %}
</section>
{% endfor %}
</div>
</div>
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
<h1 class="title is-6 is-mega-menu-title">{{ zielgruppe.name }}</h1> <h1 class="title is-6 is-mega-menu-title">{{ zielgruppe.name }}</h1>
{% for page in zielgruppe.pages %} {% for page in zielgruppe.pages %}
{% if page.date %}{% continue %}{% endif %}
<a class="navbar-item" href="{{ page.permalink }}"> <a class="navbar-item" href="{{ page.permalink }}">
<div class="navbar-content">{{ page.title }}</div> <div class="navbar-content">{{ page.title }}</div>
</a> </a>
......
...@@ -4,18 +4,33 @@ ...@@ -4,18 +4,33 @@
<div class="columns"> <div class="columns">
{% for project_section_path in projects_section.subsections %} {% for project_section_path in projects_section.subsections %}
{% set project_section = get_section(path=project_section_path) %} {% 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_section.components[0] }}">
<section class="column menu-project-section" id="menu-project-section-{{ project_taxonomy.slug }}"> <div class="card p-0 m-0 is-shadowless is-radiusless is-overlay is-flex is-flex-direction-column is-fullheight is-justify-content-space-between">
<div class="card-content p-0 m-0">
<h1 class="title is-6 is-mega-menu-title"><a href="{{ project_section.permalink }}"> <h1 class="title is-6 is-mega-menu-title"><a href="{{ project_section.permalink }}">
<p> {{ project_section.title }} </p> <p> {{ project_section.title }} </p>
<p class="is-4">{{ project_section.description }}</p> <p class="is-4">{{ project_section.description }}</p>
</a></h1> </a></h1>
{% for page in project_taxonomy.pages %} {% for page in project_section.pages %}
<a class="navbar-item" href="{{ page.permalink }}"> <a class="navbar-item" href="{{ page.permalink }}">
<div class="navbar-content">{{ page.title }}</div> <div class="navbar-content">{{ page.title }}</div>
</a> </a>
{% endfor %} {% endfor %}
</div>
{% if project_section.extra.products %}
<div class="card-footer">
{% for product in project_section.extra.products %}
<a class="card-footer-item" href="{{ product.link }}">
<span class="icon-text">
<span>{{ product.name }}</span>
<span class="icon"><i class="fa-solid fa-up-right-from-square"></i></span>
</span>
</a>
{% endfor %}
</div>
{% endif %}
</div>
</section> </section>
{% endfor %} {% endfor %}
</div> </div>
......
{% set updates = get_taxonomy(kind = "update") %}
<div class="container is-fluid">
<div class="columns">
{% for update in updates.items %}
<section
class="column menu-update-section"
id="menu-update-section-{{ update.slug }}"
>
<h1 class="title is-6 is-mega-menu-title">{{ update.name }}</h1>
{% for page in update.pages %}
<a class="navbar-item" href="{{ page.permalink }}">
<div class="navbar-content">{{ page.title }}</div>
</a>
{% endfor %}
</section>
{% endfor %}
</div>
</div>
...@@ -17,4 +17,14 @@ ...@@ -17,4 +17,14 @@
{% endblock content %} {% endblock content %}
</div> </div>
</section> </section>
{% set blog_taxonomy = get_taxonomy_term(kind="aspekt", term=page.title, include_pages=true, required=false) %}
{% if blog_taxonomy and blog_taxonomy.pages %}
{% set posts = blog_taxonomy.pages | filter(attribute="date") %}
{% if posts %}
<aside>
{% set title="Verwandte Posts aus dem Teckids-Blog" %}
{% include "blog/section.html" %}
</aside>
{% endif %}
{% endif %}
{% endblock %} {% endblock %}
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
</div> </div>
<div class="media-content"> <div class="media-content">
<p class="is-subtitle is-6"> <p class="is-subtitle is-6">
<a href="{{ get_url(path="@/gemeinschaft/plattformen.md") }}"> <a href="{{ get_url(path="@/gemeinschaft/offene-gemeinschaft/plattformen.md") }}">
Informationen und Hilfe zu unseren Plattformen Informationen und Hilfe zu unseren Plattformen
</a> </a>
</p> </p>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment