Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions content/events/fluxcon-eu-2027.mdx
Original file line number Diff line number Diff line change
@@ -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/
---
11 changes: 8 additions & 3 deletions src/components/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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",
}
Expand Down
Loading