Skip to content

Commit

Permalink
Adding 2029 infos in [year].astro (#128)
Browse files Browse the repository at this point in the history
* add 2029.yml and discord logo 2027 2028 2029

* add 2029 in navbar

* add 2029 in [year].astro
  • Loading branch information
1somniak authored Jun 11, 2024
1 parent f45d839 commit 9107c3f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/src/pages/[year].astro
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import data2025Yml from '~/data/2025.yml?raw'
import data2026Yml from '~/data/2026.yml?raw'
import data2027Yml from '~/data/2027.yml?raw'
import data2028Yml from '~/data/2028.yml?raw'
import data2029Yml from '~/data/2029.yml?raw'
export function getStaticPaths()
{
Expand All @@ -23,6 +24,7 @@ export function getStaticPaths()
{ params: { year: '2026' } },
{ params: { year: '2027' } },
{ params: { year: '2028' } },
{ params: { year: '2029' } },
]
}
Expand All @@ -35,6 +37,7 @@ const dataMap = {
'2026': data2026Yml,
'2027': data2027Yml,
'2028': data2028Yml,
'2029': data2029Yml,
}
const year = Astro.params.year as keyof typeof dataMap
Expand Down

0 comments on commit 9107c3f

Please sign in to comment.