From b7e3b2208bd89718f28275d420d4f108bafe0c0e Mon Sep 17 00:00:00 2001 From: teldra Date: Tue, 10 Jan 2023 17:08:25 +0100 Subject: [PATCH] neues theme: add blueprints.yaml --- .../templates/partials/sidebar.html.twig | 55 +++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/themes/quark-open-publishing/templates/partials/sidebar.html.twig b/themes/quark-open-publishing/templates/partials/sidebar.html.twig index 1a46cc1a..90ef14df 100644 --- a/themes/quark-open-publishing/templates/partials/sidebar.html.twig +++ b/themes/quark-open-publishing/templates/partials/sidebar.html.twig @@ -10,6 +10,61 @@ {% endif %} +{# get events by taxonomy #} +{% set events = + page.collection({ + 'items': { + '@page': '/blog' + }, + 'dateRange': { + 'start': datetools.today|date('m/d/Y'), + 'end': datetools.parseDate('+3 months')|date('m/d/Y') + }, + 'order': { + 'by': 'date', + 'dir': 'asc' + }, + 'limit': 10, + 'pagination': true + })|filter(page => page.header.event.start is defined) +%} +{% if config.plugins.events.event_sidebar.enable_categories %} + +{% endif %} + + {# display sidebar markdown page - hibbittsdesign.org #} {% if sidebar_page.header.position == 'top' or sidebar_page.header.position is empty %} {% if sidebar_page_content is not empty %}