Add lang attribute to html (#325)
continuous-integration/drone/push Build is passing Details

Closes #264

see: https://nextjs.org/docs/advanced-features/custom-document

Co-authored-by: Jared He <66887902+jaredjhe@users.noreply.github.com>
Reviewed-on: #325
Reviewed-by: n3parikh <n3parikh@csclub.uwaterloo.ca>
Co-authored-by: j285he <j285he@localhost>
Co-committed-by: j285he <j285he@localhost>
This commit is contained in:
Jared He 2021-09-22 17:12:36 -04:00
parent 3af2f38e7e
commit b305e54cb2
1 changed files with 18 additions and 0 deletions

18
pages/_document.tsx Normal file
View File

@ -0,0 +1,18 @@
import Document, { Html, Head, Main, NextScript } from "next/document";
import React from "react";
class MyDocument extends Document {
render() {
return (
<Html lang="en">
<Head />
<body>
<Main />
<NextScript />
</body>
</Html>
);
}
}
export default MyDocument;