mirror of
https://github.com/checktheroads/hyperglass
synced 2024-05-11 05:55:08 +00:00
clean up <meta/> and SEO components
This commit is contained in:
@@ -4,7 +4,6 @@ import { Flex, useColorMode } from "@chakra-ui/core";
|
||||
import Header from "~/components/Header";
|
||||
import Footer from "~/components/Footer";
|
||||
import Greeting from "~/components/Greeting";
|
||||
import Meta from "~/components/Meta";
|
||||
import useConfig, { useHyperglassState } from "~/components/HyperglassProvider";
|
||||
import Debugger from "~/components/Debugger";
|
||||
|
||||
@@ -19,7 +18,6 @@ const Layout = ({ children }) => {
|
||||
|
||||
return (
|
||||
<>
|
||||
<Meta />
|
||||
<Flex
|
||||
w="100%"
|
||||
ref={containerRef}
|
||||
@@ -58,5 +56,4 @@ const Layout = ({ children }) => {
|
||||
);
|
||||
};
|
||||
|
||||
Layout.displayName = "HyperglassLayout";
|
||||
export default Layout;
|
||||
|
@@ -47,5 +47,4 @@ const LookingGlass = () => {
|
||||
);
|
||||
};
|
||||
|
||||
LookingGlass.displayName = "LookingGlass";
|
||||
export default LookingGlass;
|
||||
|
@@ -1,7 +1,7 @@
|
||||
import React from "react";
|
||||
import { useRouter } from "next/router";
|
||||
// import { useRouter } from "next/router";
|
||||
import { HyperglassProvider } from "~/components/HyperglassProvider";
|
||||
import Error from "./_error";
|
||||
// import Error from "./_error";
|
||||
|
||||
const config = process.env._HYPERGLASS_CONFIG_;
|
||||
|
||||
@@ -17,6 +17,4 @@ const Hyperglass = ({ Component, pageProps }) => {
|
||||
);
|
||||
};
|
||||
|
||||
Hyperglass.displayName = "Hyperglass";
|
||||
|
||||
export default Hyperglass;
|
||||
|
@@ -10,7 +10,15 @@ class MyDocument extends Document {
|
||||
render() {
|
||||
return (
|
||||
<Html lang="en">
|
||||
<Head></Head>
|
||||
<Head>
|
||||
<link rel="dns-prefetch" href="//fonts.googleapis.com" />
|
||||
<link rel="dns-prefetch" href="//fonts.gstatic.com" />
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin />
|
||||
<link rel="preconnect" href="https://www.google-analytics.com" />
|
||||
<meta charSet="UTF-8" />
|
||||
<meta httpEquiv="Content-Type" content="text/html" />
|
||||
<meta name="og:type" content="website" />
|
||||
</Head>
|
||||
<body>
|
||||
<script src="noflash.js" />
|
||||
<Main />
|
||||
|
@@ -1,10 +1,16 @@
|
||||
import * as React from "react";
|
||||
import dynamic from "next/dynamic";
|
||||
import Meta from "~/components/Meta";
|
||||
import Loading from "~/components/Loading";
|
||||
const LookingGlass = dynamic(() => import("~/components/LookingGlass"), {
|
||||
loading: Loading
|
||||
});
|
||||
|
||||
const Index = () => <LookingGlass />;
|
||||
const Index = () => (
|
||||
<>
|
||||
<Meta />
|
||||
<LookingGlass />
|
||||
</>
|
||||
);
|
||||
|
||||
export default Index;
|
||||
|
Reference in New Issue
Block a user