Skip to content

Commit

Permalink
add 2029 in [year].astro
Browse files Browse the repository at this point in the history
  • Loading branch information
1somniak committed Jun 11, 2024
1 parent 0835ad6 commit 070c502
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 070c502

Please sign in to comment.