From 2b28ac25c823d191f79305e8ce08c06f83f702c1 Mon Sep 17 00:00:00 2001 From: trash07 Date: Sun, 1 Mar 2026 14:15:43 -0500 Subject: [PATCH 1/2] feat: update SEO --- src/components/PostSeo.jsx | 39 +++++++++++++++++++ .../blog-posts/{mdx.frontmatter__slug}.jsx | 8 +++- 2 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 src/components/PostSeo.jsx diff --git a/src/components/PostSeo.jsx b/src/components/PostSeo.jsx new file mode 100644 index 0000000..8d586a9 --- /dev/null +++ b/src/components/PostSeo.jsx @@ -0,0 +1,39 @@ +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 }) { From ef187a374990bf3ccf64578099dac5fc3bc1cb97 Mon Sep 17 00:00:00 2001 From: trash07 Date: Sun, 1 Mar 2026 14:26:59 -0500 Subject: [PATCH 2/2] feat: update OGP tags --- src/components/PostSeo.jsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/components/PostSeo.jsx b/src/components/PostSeo.jsx index 8d586a9..edaff59 100644 --- a/src/components/PostSeo.jsx +++ b/src/components/PostSeo.jsx @@ -7,6 +7,11 @@ export function PostOgpSeo({ frontmatter }) { + + ); }