Skip to content

Commit

Permalink
chore: advent of svelte banner (#914)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris authored Dec 2, 2024
1 parent 2efd674 commit 0cf5e7e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions apps/svelte.dev/src/routes/+layout.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,18 +56,18 @@ const sections: Record<string, string> = {
};

const banner: BannerData = {
id: 'sveltehack2024',
start: new Date('22 Oct, 2024 00:00:00 UTC'),
end: new Date('15 December, 2024 23:59:59 UTC'),
id: 'adventofsvelte2024',
start: new Date('1 December, 2024 00:00:00 UTC'),
end: new Date('25 December, 2024 23:59:59 UTC'),
arrow: true,
content: {
lg: 'Cast runes, win prizes: SvelteHack 2024',
sm: 'SvelteHack 2024'
lg: 'Twenty-four days, twenty-four features: Advent of Svelte 2024',
sm: 'Advent of Svelte 2024'
},
href: 'https://hack.sveltesociety.dev/2024'
href: '/blog/advent-of-svelte'
};

export const load = async ({ url, fetch }) => {
export const load = async ({ url }) => {
const nav_title = sections[url.pathname.split('/')[1]!] ?? '';

return {
Expand Down

0 comments on commit 0cf5e7e

Please sign in to comment.