From daf44f9dc2b4f73c939200baea7066ed99078e3c Mon Sep 17 00:00:00 2001 From: Daniel Lautzenheiser Date: Tue, 25 Oct 2022 16:22:01 -0400 Subject: [PATCH] Add next blog template --- .../content/docs/start-with-a-template.mdx | 2 +- website/public/vercel.svg | 4 --- website/src/pages/_app.tsx | 32 +++++++++++++++---- website/src/pages/_document.tsx | 17 +--------- 4 files changed, 27 insertions(+), 28 deletions(-) delete mode 100644 website/public/vercel.svg diff --git a/website/content/docs/start-with-a-template.mdx b/website/content/docs/start-with-a-template.mdx index c5fa4ca8..23142777 100644 --- a/website/content/docs/start-with-a-template.mdx +++ b/website/content/docs/start-with-a-template.mdx @@ -137,7 +137,7 @@ You can add Static CMS [to an existing site](/docs/add-to-your-site/), but the q
Next.js Blog Template

- + Deploy to Netlify

diff --git a/website/public/vercel.svg b/website/public/vercel.svg deleted file mode 100644 index fbf0e25a..00000000 --- a/website/public/vercel.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - \ No newline at end of file diff --git a/website/src/pages/_app.tsx b/website/src/pages/_app.tsx index 8013da54..1a80efac 100644 --- a/website/src/pages/_app.tsx +++ b/website/src/pages/_app.tsx @@ -2,11 +2,13 @@ import '../styles/globals.css'; import CssBaseline from '@mui/material/CssBaseline'; import { ThemeProvider } from '@mui/material/styles'; +import Head from 'next/head'; +import { useRouter } from 'next/router'; import Prism from 'prismjs'; import { useEffect, useMemo, useState } from 'react'; -import { useRouter } from 'next/router'; import ColorModeContext from '../components/context/ColorModeContext'; +import homepageData from '../lib/homepage'; import useCreateTheme from '../styles/theme'; import type { PaletteMode } from '@mui/material'; @@ -47,12 +49,28 @@ function MyApp({ Component, pageProps }: AppProps) { const theme = useCreateTheme(mode); return ( - - - - - - + <> + + + + + + + + + + + + + + + + + + ); } diff --git a/website/src/pages/_document.tsx b/website/src/pages/_document.tsx index 26a3d20e..af2f1aba 100644 --- a/website/src/pages/_document.tsx +++ b/website/src/pages/_document.tsx @@ -1,24 +1,9 @@ import { Head, Html, Main, NextScript } from 'next/document'; -import homepageData from '../lib/homepage'; - export default function Document() { return ( - - - - - - - - - - - +