From b7d0483a77a666bcf4d89107f85095f305f02c41 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Tue, 6 Feb 2024 08:00:00 +0000 Subject: [PATCH] Show talks for each speaker --- app/config/sculpin_site.yml | 25 +++++++++++++++++++++++++ source/_layouts/speaker.html.twig | 17 +++++++++++++++++ 2 files changed, 42 insertions(+) diff --git a/app/config/sculpin_site.yml b/app/config/sculpin_site.yml index db94fee..5825e44 100644 --- a/app/config/sculpin_site.yml +++ b/app/config/sculpin_site.yml @@ -1,2 +1,27 @@ name: 'PHPSW' locale: en +talks: + - title: Building Static Websites with PHP and Sculpin + speaker: Oliver Davies + - title: 'FPGA^2: An open-source FPGA' + speaker: Robin Hodson + - title: Introducing Domain Driven Design + speaker: Rob Allen + - title: Building Better TUIs (with PHP) + speaker: Dan Leech + - title: Thoughts on Ubiquitous Language + speaker: Rob Allen + - title: Testing Legacy + speaker: Mike Karthauser + - title: Building "Build Configs" + speaker: Oliver Davies + - title: Terraform from a dev’s perspective + speaker: Nigel Dunn + - title: What is TDD and why should I care? + speaker: Naomi Gotts + - title: Go for PHP + speaker: Dan Leech + - title: What's new in PHP 8.* + speaker: Derick Rethans + - title: Behaviour Driven Development (BDD) in Practice + speaker: Ciaran McNulty diff --git a/source/_layouts/speaker.html.twig b/source/_layouts/speaker.html.twig index fe85b6f..121ea37 100644 --- a/source/_layouts/speaker.html.twig +++ b/source/_layouts/speaker.html.twig @@ -14,4 +14,21 @@
{{ block('content') }}
+ + {% set talks = site.talks|filter(talk => talk.speaker == page.name) %} + {% if talks is not empty %} +
+

Talks by {{ page.name }}

+ +
+ +
+
+ {% endif %} {% endblock %}