diff --git a/src/components/PostSeo.jsx b/src/components/PostSeo.jsx new file mode 100644 index 0000000..edaff59 --- /dev/null +++ b/src/components/PostSeo.jsx @@ -0,0 +1,44 @@ +import * as React from 'react'; + +export function PostOgpSeo({ frontmatter }) { + return ( + <> + + + + + + + + ); +} + +export function PostTwitterSeo({ frontmatter }) { + return ( + <> + + + + + + + ); +} + +export function PostSeo({ frontmatter }) { + return ( + <> + + + + ); +} diff --git a/src/pages/blog-posts/{mdx.frontmatter__slug}.jsx b/src/pages/blog-posts/{mdx.frontmatter__slug}.jsx index 061142e..1decaef 100644 --- a/src/pages/blog-posts/{mdx.frontmatter__slug}.jsx +++ b/src/pages/blog-posts/{mdx.frontmatter__slug}.jsx @@ -1,9 +1,15 @@ import * as React from 'react'; import { PostLayout } from '../../components/PostLayout'; +import { PostSeo } from '../../components/PostSeo'; export const Head = ({ pageContext }) => { const { frontmatter } = pageContext; - return {frontmatter.title}; + return ( + <> + {frontmatter.title} + + + ); }; export default function PostPage({ pageContext, children }) {