Move head and footer to _app.js

This commit is contained in:
2022-04-06 00:21:49 +08:00
parent 3806e87638
commit de33d12ab0
4 changed files with 231 additions and 22 deletions

View File

@@ -1,7 +1,30 @@
import '../styles/globals.css'
import Link from "next/link";
import Head from "next/head";
import "../styles/globals.css";
import styles from "../styles/Home.module.css";
function MyApp({ Component, pageProps }) {
return <Component {...pageProps} />
return (
<>
<Head>
<title>前端技术分享</title>
<meta name="description" content="乐" />
<link rel="icon" href="/favicon.ico" />
</Head>
<Component {...pageProps} />
<footer className={styles.footer}>
<Link
href="https://beian.miit.gov.cn/"
target="_blank"
rel="noopener noreferrer"
>
粤ICP备2022033906号-1
</Link>
</footer>
</>
);
}
export default MyApp
export default MyApp;