change to .md
This commit is contained in:
parent
9f7d40b426
commit
f7e878d3f8
|
@ -49,8 +49,8 @@ export async function getEventsByTerm(
|
||||||
term: string
|
term: string
|
||||||
): Promise<Event[]> {
|
): Promise<Event[]> {
|
||||||
const files = (await fs.readdir(path.join(EVENTS_PATH, year, term)))
|
const files = (await fs.readdir(path.join(EVENTS_PATH, year, term)))
|
||||||
.filter((name) => name.endsWith(".event.md"))
|
.filter((name) => name.endsWith(".md"))
|
||||||
.map((name) => name.slice(0, -".event.md".length));
|
.map((name) => name.slice(0, -".md".length));
|
||||||
|
|
||||||
const props = await Promise.all(
|
const props = await Promise.all(
|
||||||
files.map((file) => getEventBySlug(year, term, file))
|
files.map((file) => getEventBySlug(year, term, file))
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue