Add /events/[year] page #151

Merged
j285he merged 33 commits from feat/events-year into main 2021-08-27 21:49:26 -04:00
2 changed files with 7434 additions and 11 deletions
Showing only changes of commit f7e878d3f8 - Show all commits

View File

@ -49,8 +49,8 @@ export async function getEventsByTerm(
term: string
): Promise<Event[]> {
const files = (await fs.readdir(path.join(EVENTS_PATH, year, term)))
.filter((name) => name.endsWith(".event.md"))
.map((name) => name.slice(0, -".event.md".length));
.filter((name) => name.endsWith(".md"))
.map((name) => name.slice(0, -".md".length));
const props = await Promise.all(
files.map((file) => getEventBySlug(year, term, file))

7441
package-lock.json generated

File diff suppressed because it is too large Load Diff