From 0c77cee7cbce8cd983bec342842cf487ee67b28b Mon Sep 17 00:00:00 2001 From: Dan Garfield Date: Fri, 13 Nov 2026 16:16:36 -0700 Subject: [PATCH] Add FluxCon EU 2027 and share the banner between same-day events FluxCon EU 2027 is co-located with ArgoCon EU 2027 on March 15 in Barcelona. The banner now names every event on the next event date ("ArgoCon EU 2027 & FluxCon EU 2027"), ordered by title. Co-Authored-By: Claude Opus 5.5 Signed-off-by: Dan Garfield --- content/events/fluxcon-eu-2027.mdx | 6 ++++++ src/components/header.js | 11 ++++++++--- 2 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 content/events/fluxcon-eu-2027.mdx diff --git a/content/events/fluxcon-eu-2027.mdx b/content/events/fluxcon-eu-2027.mdx new file mode 100644 index 0000000..c5791ae --- /dev/null +++ b/content/events/fluxcon-eu-2027.mdx @@ -0,0 +1,6 @@ +--- +title: FluxCon EU 2027 +date: "2027-03-15" +location: "Kubecon - Barcelona, Spain" +attend: https://events.linuxfoundation.org/kubecon-cloudnativecon-europe/co-located-events/fluxcon/ +--- diff --git a/src/components/header.js b/src/components/header.js index f72ae40..995b456 100644 --- a/src/components/header.js +++ b/src/components/header.js @@ -14,7 +14,7 @@ const Header = ({ color, hasBanner }) => { query { allMdx( filter: { internal: { contentFilePath: { regex: "/(content/events)/" } } } - sort: { frontmatter: { date: ASC } } + sort: [{ frontmatter: { date: ASC } }, { frontmatter: { title: ASC } }] ) { nodes { frontmatter { @@ -32,13 +32,18 @@ const Header = ({ color, hasBanner }) => { const today = new Date().toISOString().slice(0, 10) const events = allMdx.nodes.map(n => n.frontmatter).filter(e => e.date) const nextEvent = events.find(e => e.date.slice(0, 10) >= today) + // Co-located events on the same day share the banner, e.g. ArgoCon + FluxCon. + const nextTitles = events + .filter(e => nextEvent && e.date === nextEvent.date) + .map(e => e.title) + .join(" & ") const lastRecorded = events .filter(e => e.recordings && e.date.slice(0, 10) < today) .pop() const banner = nextEvent ? { - description: `Join us for ${nextEvent.title}!`, - shortDescription: nextEvent.title, + description: `Join us for ${nextTitles}!`, + shortDescription: nextTitles, link: nextEvent.attend, cta: "Register", }