layout.tsx 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /* eslint-disable @next/next/no-page-custom-font */
  2. import "./styles/globals.scss";
  3. import "./styles/markdown.scss";
  4. import "./styles/prism.scss";
  5. import process from "child_process";
  6. export const metadata = {
  7. title: "ChatGPT Next Web",
  8. description: "Your personal ChatGPT Chat Bot.",
  9. };
  10. const COMMIT_ID = process
  11. .execSync("git rev-parse --short HEAD")
  12. .toString()
  13. .trim();
  14. export default function RootLayout({
  15. children,
  16. }: {
  17. children: React.ReactNode;
  18. }) {
  19. return (
  20. <html lang="en">
  21. <head>
  22. <meta
  23. name="viewport"
  24. content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"
  25. />
  26. <meta name="version" content={COMMIT_ID} />
  27. <link rel="manifest" href="/site.webmanifest"></link>
  28. <link rel="preconnect" href="https://fonts.googleapis.com"></link>
  29. <link rel="preconnect" href="https://fonts.gstatic.com"></link>
  30. <link
  31. href="https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;700;900&display=swap"
  32. rel="stylesheet"
  33. ></link>
  34. </head>
  35. <body>{children}</body>
  36. </html>
  37. );
  38. }