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: www/www-new#325
Reviewed-by: n3parikh <n3parikh@csclub.uwaterloo.ca>
Co-authored-by: j285he <j285he@localhost>
Co-committed-by: j285he <j285he@localhost>
speed-friending
j285he 1 year ago
parent 3af2f38e7e
commit b305e54cb2
  1. 18
      pages/_document.tsx

@ -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…
Cancel
Save