diff --git a/next/pages/talk/[id].js b/next/pages/talk/[id].js deleted file mode 100644 index 3395fe5..0000000 --- a/next/pages/talk/[id].js +++ /dev/null @@ -1,48 +0,0 @@ -import Head from "next/head"; -import Layout from "../../components/layout"; -import Date from "../../components/date"; - -import utilStyles from "../../styles/utils.module.css"; -import { getTalkData, getTalksData, getAllTalkIds } from "../../lib/talks"; - -export async function getStaticProps({ params }) { - const data = await getTalkData(params.id); - return { - props: { - data, - }, - }; -} - -export async function getStaticPaths() { - const paths = getAllTalkIds(); - return { - paths, - fallback: false, - }; -} - -export default function Talk({ data }) { - return ( - - - {data.title} - -
-

{data.title}

-
- -
- {data.event && data.context && ( -

- {" "} - at {data.context} by {data.org} -

- )} -
-
-
-
-
- ); -}