Make sure that the advice, team, and tech-talk pages are loading properly Reviewed-on: #289 Co-authored-by: Aditya Thakral <a3thakra@csclub.uwaterloo.ca> Co-committed-by: Aditya Thakral <a3thakra@csclub.uwaterloo.ca>
This commit is contained in:
parent
7960d71afe
commit
964b112481
|
@ -4,7 +4,7 @@ import path from "path";
|
|||
import matter from "gray-matter";
|
||||
import { serialize } from "next-mdx-remote/serialize";
|
||||
|
||||
const EXECS_PATH = path.join("content", "meet-the-team", "execs");
|
||||
const EXECS_PATH = path.join("content", "team", "execs");
|
||||
const fileType = ".md";
|
||||
|
||||
export interface Metadata {
|
||||
|
|
|
@ -13,7 +13,7 @@ export interface Metadata {
|
|||
links: { file: string; type: string; size?: string }[];
|
||||
}
|
||||
|
||||
const TALKS_PATH = path.join("content", "tech-talks");
|
||||
const TALKS_PATH = path.join("content", "resources", "tech-talks");
|
||||
|
||||
export async function getTechTalk(slug: string) {
|
||||
const raw = await fs.readFile(path.join(TALKS_PATH, `${slug}.md`));
|
||||
|
|
|
@ -16,9 +16,9 @@ import {
|
|||
getMemberImagePath,
|
||||
} from "@/lib/team";
|
||||
|
||||
import programmeData from "../../content/meet-the-team/programme-committee.json";
|
||||
import systemsData from "../../content/meet-the-team/systems-committee.json";
|
||||
import websiteData from "../../content/meet-the-team/website-committee.json";
|
||||
import programmeData from "../../content/team/programme-committee.json";
|
||||
import systemsData from "../../content/team/systems-committee.json";
|
||||
import websiteData from "../../content/team/website-committee.json";
|
||||
|
||||
import styles from "./team.module.css";
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ import React from "react";
|
|||
|
||||
import { Title } from "@/components/Title";
|
||||
|
||||
import Content from "../../../content/advice/academic-advice.mdx";
|
||||
import Content from "../../../content/resources/advice/academic-advice.mdx";
|
||||
|
||||
import { Advice } from "./co-op";
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ import React, { ReactNode } from "react";
|
|||
import { Image } from "@/components/Image";
|
||||
import { Title } from "@/components/Title";
|
||||
|
||||
import Content from "../../../content/advice/co-op-advice.mdx";
|
||||
import Content from "../../../content/resources/advice/co-op-advice.mdx";
|
||||
|
||||
import styles from "./co-op.module.css";
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ import React from "react";
|
|||
|
||||
import { Title } from "@/components/Title";
|
||||
|
||||
import Content from "../../../content/advice/misc-advice.mdx";
|
||||
import Content from "../../../content/resources/advice/misc-advice.mdx";
|
||||
|
||||
import { Advice } from "./co-op";
|
||||
|
||||
|
|
Loading…
Reference in New Issue