diff --git a/components/CustomFont.tsx b/components/CustomFont.tsx deleted file mode 100644 index 7809848..0000000 --- a/components/CustomFont.tsx +++ /dev/null @@ -1,34 +0,0 @@ -import React from 'react' -import Head from 'next/head' -import * as types from '../lib/types' - -export const CustomFont: React.FC<{ site: types.Site }> = ({ site }) => { - if (!site.fontFamily) { - return null - } - - // https://developers.google.com/fonts/docs/css2 - const fontFamilies = [site.fontFamily] - const googleFontFamilies = fontFamilies - .map((font) => font.replace(/ /g, '+')) - .map((font) => `family=${font}:ital,wght@0,200..700;1,200..700`) - .join('&') - const googleFontsLink = `https://fonts.googleapis.com/css?${googleFontFamilies}&display=swap` - const cssFontFamilies = fontFamilies.map((font) => `"${font}"`).join(', ') - - return ( - <> -
- - - - - > - ) -} diff --git a/components/NotionPage.tsx b/components/NotionPage.tsx index a83a790..002675a 100644 --- a/components/NotionPage.tsx +++ b/components/NotionPage.tsx @@ -24,7 +24,6 @@ import * as types from 'lib/types' import * as config from 'lib/config' // components -import { CustomFont } from './CustomFont' import { Loading } from './Loading' import { Page404 } from './Page404' import { PageHead } from './PageHead' @@ -273,8 +272,6 @@ export const NotionPage: React.FC