From c3b415391ce0c681cae0f4a8d9e23b6310743965 Mon Sep 17 00:00:00 2001 From: Jakub Stasiak Date: Mon, 17 Mar 2025 19:37:51 +0100 Subject: [PATCH] Distinguish between publication dates and meetup dates The date property is used as publication date in the RSS feed so as new meetups are added the publication dates are in the future. Adding a separate property allows defining independent publication and meetup dates. Note: the publication date could be rendered outside of the RSS feed but currently isn't. --- content/spotkania/55.md | 3 ++- content/spotkania/56.md | 3 ++- content/spotkania/57.md | 5 +++-- layouts/partials/infographic-image.html | 2 +- layouts/shortcodes/meetup-details.html | 4 ++-- 5 files changed, 10 insertions(+), 7 deletions(-) diff --git a/content/spotkania/55.md b/content/spotkania/55.md index 24fbeb5..833b8ad 100644 --- a/content/spotkania/55.md +++ b/content/spotkania/55.md @@ -1,7 +1,8 @@ --- title: "Meetup #55" date: 2024-11-27 -time: "18:00" +meetup_date: 2024-11-27 +meetup_time: "18:00" place: "**IndieBI**, Piotrkowska 157A, budynek Hi Piotrkowska" meetup_link: "https://www.meetup.com/python-lodz/events/303808956/" sponsors: [indiebi, sunscrapers] diff --git a/content/spotkania/56.md b/content/spotkania/56.md index ecc439d..7ea802b 100644 --- a/content/spotkania/56.md +++ b/content/spotkania/56.md @@ -1,7 +1,8 @@ --- title: "Meetup #56" date: 2025-01-29 -time: "18:00" +meetup_date: 2025-01-29 +meetup_time: "18:00" place: "**IndieBI**, Piotrkowska 157A, budynek Hi Piotrkowska" meetup_link: "https://www.meetup.com/python-lodz/events/305328267/" sponsors: [indiebi, sunscrapers] diff --git a/content/spotkania/57.md b/content/spotkania/57.md index afa9721..a5a0869 100644 --- a/content/spotkania/57.md +++ b/content/spotkania/57.md @@ -1,7 +1,8 @@ --- title: "Meetup #57" -date: 2025-03-26 -time: "18:00" +date: 2025-03-15 +meetup_date: 2025-03-26 +meetup_time: "18:00" place: "**IndieBI**, Piotrkowska 157A, budynek Hi Piotrkowska" meetup_link: "https://www.meetup.com/python-lodz/events/305850516/" live_stream: "" diff --git a/layouts/partials/infographic-image.html b/layouts/partials/infographic-image.html index 83a8270..e06a7c3 100644 --- a/layouts/partials/infographic-image.html +++ b/layouts/partials/infographic-image.html @@ -5,7 +5,7 @@ {{ $final := $bg }} {{ $imgWidth := $final.Width }} -{{ $date := (printf "%sr. godz. %s" (.Page.Params.date | time.Format "Monday 02.01.2006"| strings.ToUpper) .Page.Params.time) }} +{{ $date := (printf "%sr. godz. %s" (.Page.Params.meetup_date | time.Format "Monday 02.01.2006"| strings.ToUpper) .Page.Params.meetup_time) }} {{ $mainDateOptions := dict "color" "#393f5f" "size" 80 diff --git a/layouts/shortcodes/meetup-details.html b/layouts/shortcodes/meetup-details.html index 771de98..e50979c 100644 --- a/layouts/shortcodes/meetup-details.html +++ b/layouts/shortcodes/meetup-details.html @@ -10,8 +10,8 @@ {{ end }}

Informacje

-

Data: {{ .Page.Params.date | time.Format ":date_full" }}

-

Godzina: {{ .Page.Params.time }}

+

Data: {{ .Page.Params.meetup_date | time.Format ":date_full" }}

+

Godzina: {{ .Page.Params.meetup_time }}

Miejsce: {{ .Page.Params.place | markdownify }}

Zapisy: Meetup.com