Add lang attribute to html (#325)
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>pull/333/head
parent
3af2f38e7e
commit
b305e54cb2
@ -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; |
Loading…
Reference in new issue