From d3642120865be0d39ca331cc5566e43822aaf752 Mon Sep 17 00:00:00 2001 From: Paul-Louis NECH Date: Sun, 25 Apr 2021 21:53:59 +0200 Subject: [PATCH] wip: Remove buggy /talk/id --- next/pages/talk/[id].js | 48 ------------------------------------------------ 1 file changed, 48 deletions(-) delete mode 100644 next/pages/talk/[id].js 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} -

- )} -
-
-
-
-
- ); -} -- libgit2 0.27.0