mirror of https://github.com/sunface/rust-course
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
430 B
17 lines
430 B
import React from "react"
|
|
import { NextSeo, NextSeoProps } from "next-seo"
|
|
import siteConfig from "configs/site-config"
|
|
|
|
export interface SEOProps extends Pick<NextSeoProps, "title" | "description"> {}
|
|
|
|
const SEO = ({ title, description }: SEOProps) => (
|
|
<NextSeo
|
|
title={title}
|
|
description={description}
|
|
openGraph={{ title, description }}
|
|
titleTemplate={siteConfig.seo.titleTemplate}
|
|
/>
|
|
)
|
|
|
|
export default SEO
|