mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-03 18:06:38 -04:00
alt
attributes aren't valid on inline SVGs
This commit is contained in:
25
pages/_document.tsx
Normal file
25
pages/_document.tsx
Normal file
@ -0,0 +1,25 @@
|
||||
import Document, { Html, Head, Main, NextScript } from "next/document";
|
||||
import * as config from "../lib/config";
|
||||
|
||||
import type { DocumentContext } from "next/document";
|
||||
|
||||
class MyDocument extends Document {
|
||||
static async getInitialProps(ctx: DocumentContext) {
|
||||
const initialProps = await Document.getInitialProps(ctx);
|
||||
return { ...initialProps };
|
||||
}
|
||||
|
||||
render() {
|
||||
return (
|
||||
<Html lang={config.siteLocale?.replace("_", "-")}>
|
||||
<Head />
|
||||
<body>
|
||||
<Main />
|
||||
<NextScript />
|
||||
</body>
|
||||
</Html>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export default MyDocument;
|
Reference in New Issue
Block a user