-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
document: Add html lang and favicons to every page (#93)
Adding a `lang` removes this warning from validator.w3.org: > Consider adding a `lang` attribute to the `html` start tag to declare the language of this document. Adding the favicons makes them appear everywhere, which fixes a small bug where they weren't included in pages/data-sources.tsx.
- Loading branch information
Showing
3 changed files
with
23 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { Html, Head, Main, NextScript } from 'next/document' | ||
import { Favicons } from '../lib/common_elements' | ||
|
||
export default function Document(): JSX.Element { | ||
return ( | ||
<Html lang="en"> | ||
<Head> | ||
<Favicons /> | ||
</Head> | ||
<body> | ||
<Main /> | ||
<NextScript /> | ||
</body> | ||
</Html> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters