Move head and footer to _app.js
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user