From bcfd011c229988b688c2fa2e55f5caa8a75cbedc Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Tue, 1 Oct 2024 12:00:00 +0100 Subject: [PATCH] Hide the Episodes heading --- source/_pages/archive.html | 4 +++- source/_pages/podcast.md | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/source/_pages/archive.html b/source/_pages/archive.html index 496dde94..d20b22a0 100644 --- a/source/_pages/archive.html +++ b/source/_pages/archive.html @@ -13,7 +13,9 @@ use: --- {% block content %} -

This is an archive of the {{ data.daily_emails|length|number_format }} email messages I have sent to my daily mailing list since the 12th of August, 2022. Enjoy!

+ {% set daily_emails = data.daily_emails|filter((email) => email.date <= 'now'|date) %} + +

This is an archive of the {{ daily_emails|length|number_format }} email messages I have sent to my daily mailing list since the 12th of August, 2022. Enjoy!

diff --git a/source/_pages/podcast.md b/source/_pages/podcast.md index 9a21fc74..a540599a 100644 --- a/source/_pages/podcast.md +++ b/source/_pages/podcast.md @@ -13,7 +13,7 @@ A weekly podcast about Drupal, PHP, open-source, and related software developmen Subscribe at {{ site.transistor.feed.url }}. -## Episodes +## Episodes {.sr-only} {% for episode in data.podcast_episodes|reverse %} {% set episodeNumber = episode.url|trim('/')|split('/')|last|split('-')|first %}