Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions frontend/pages/_document.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import Document, { Head, Main, NextScript } from 'next/document';
import { ServerStyleSheet } from 'styled-components';

import favicon from '../static/favicon.png';
import ogImage from '../static/og:image.png';

export default class MyDocument extends Document {
static getInitialProps({ renderPage }) {
Expand All @@ -25,6 +26,10 @@ export default class MyDocument extends Document {
<Head>
<link href="https://fonts.googleapis.com/css?family=Press+Start+2P&display=swap" rel="stylesheet" />
<link rel="shortcut icon" type="image/png" href={favicon} />
<meta property="og:title" content="Bodging Bear" />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://bodgingbear.dev/" />
<meta property="og:image" content={`https://bodgingbear.dev${ogImage}`} />
{this.props.styleTags}
</Head>
<body>
Expand Down
Binary file added frontend/static/og:image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.