change to .md

This commit is contained in:
Jared He 2021-08-02 20:01:36 -05:00
parent 9f7d40b426
commit f7e878d3f8
2 changed files with 7434 additions and 11 deletions

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