change to .md

pull/115/head
Jared He 2 years ago
parent 9f7d40b426
commit f7e878d3f8
  1. 4
      lib/events.ts
  2. 7441
      package-lock.json

@ -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
Loading…
Cancel
Save