From 59140bd3a37809b411f88a14067a6a0e6677427a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Wirtel?= Date: Thu, 2 Jul 2026 20:42:02 +0200 Subject: [PATCH] Add missing validFrom to Event offers structured data Google Search Console flagged a non-critical Events structured data issue: the AggregateOffer in the homepage Event schema was missing the recommended 'validFrom' field. Add a ticketsValidFrom param (defaults to the date the pricing tiers were announced) and reference it in the offers block. --- hugo.toml | 1 + layouts/partials/structured-data.html | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/hugo.toml b/hugo.toml index d05d591..1f65822 100644 --- a/hugo.toml +++ b/hugo.toml @@ -56,6 +56,7 @@ enableGitInfo = true cfpOpens = "2026-05-25" cfpCloses = "2026-07-31" ticketsUrl = "" # Set to Tito/Eventbrite URL when tickets go on sale + ticketsValidFrom = "2026-05-01" # Date pricing tiers were announced; required by Google's Offer.validFrom check # Contact & social email = "contact@python.ie" diff --git a/layouts/partials/structured-data.html b/layouts/partials/structured-data.html index 7a1efd6..44be968 100644 --- a/layouts/partials/structured-data.html +++ b/layouts/partials/structured-data.html @@ -73,7 +73,8 @@ "offerCount": {{ len .Site.Params.tickets }}, "priceCurrency": "EUR", "url": "{{ if .Site.Params.ticketsUrl }}{{ .Site.Params.ticketsUrl }}{{ else }}{{ .Site.BaseURL }}{{ end }}", - "availability": "https://schema.org/PreOrder" + "availability": "https://schema.org/PreOrder", + "validFrom": "{{ .Site.Params.ticketsValidFrom }}" } }