Skip to content

Commit

Permalink
feat(seo): add metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
Luna committed Feb 18, 2024
1 parent cf882b8 commit bcc833e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
Binary file added public/banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions src/layout/page-layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,20 @@ const PageLayout: FC<IProps> = (props) => {
<>
<Head>
<title>{props.title}</title>
<meta name="title" content={props.title} />
<meta name="description" content={props.description} />

<meta property="og:type" content="website" />
<meta property="og:url" content="https://web-expl.qwq.sh" />
<meta property="og:title" content={props.title} />
<meta property="og:description" content={props.description} />
<meta property="og:image" content="/banner.png" />

<meta property="twitter:card" content="summary_large_image" />
<meta property="twitter:url" content="https://web-expl.qwq.sh" />
<meta property="twitter:title" content={props.title} />
<meta property="twitter:description" content={props.description} />
<meta property="twitter:image" content="/banner.png" />
</Head>
<div className="bg-background text-text overflow-x-hidden">
<Navbar title={props.title} />
Expand Down

0 comments on commit bcc833e

Please sign in to comment.