|
|
|
@ -1,7 +1,7 @@ |
|
|
|
|
import React from "react"; |
|
|
|
|
|
|
|
|
|
import { Link } from "../../../components/Link"; |
|
|
|
|
import { getYears, getTermsByYear } from "../../../lib/events"; |
|
|
|
|
import { getEventYears, getEventTermsByYear } from "../../../lib/events"; |
|
|
|
|
|
|
|
|
|
import styles from "./year.module.css"; |
|
|
|
|
|
|
|
|
@ -13,7 +13,7 @@ export async function getStaticPaths(): Promise<{ |
|
|
|
|
}[]; |
|
|
|
|
fallback: boolean; |
|
|
|
|
}> { |
|
|
|
|
const years = await getYears(); |
|
|
|
|
const years = await getEventYears(); |
|
|
|
|
const paths = years.map((curYear) => ({ |
|
|
|
|
params: { year: curYear }, |
|
|
|
|
})); |
|
|
|
@ -38,7 +38,7 @@ export async function getStaticProps(context: Context): Promise<{ |
|
|
|
|
return { |
|
|
|
|
props: { |
|
|
|
|
year: context.params.year, |
|
|
|
|
terms: await getTermsByYear(context.params.year), |
|
|
|
|
terms: await getEventTermsByYear(context.params.year), |
|
|
|
|
}, |
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
|