mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-09-13 23:55:35 -04:00
fix double-quote encoding in article JSON-LD
related: https://github.com/garmeeh/next-seo/issues/711 https://search.google.com/search-console/r/unknown-type/drilldown?resource_id=https%3A%2F%2Fjarv.is%2F&item_key=CgIIGBADGA4&hl=en&sharing_key=szw2VOK7QYoeChN1-JxOqg
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { MDXRemote } from "next-mdx-remote";
|
||||
import { serialize } from "next-mdx-remote/serialize";
|
||||
import { NextSeo, ArticleJsonLd } from "next-seo";
|
||||
import { escape } from "html-escaper";
|
||||
import Content from "../../components/Content";
|
||||
import Meta from "../../components/notes/Meta";
|
||||
import mdxComponents from "../../components/mdxComponents";
|
||||
@@ -42,8 +43,8 @@ const Note = ({ frontMatter, source }) => (
|
||||
/>
|
||||
<ArticleJsonLd
|
||||
url={frontMatter.permalink}
|
||||
title={frontMatter.title}
|
||||
description={frontMatter.description}
|
||||
title={escape(frontMatter.title)}
|
||||
description={escape(frontMatter.description)}
|
||||
datePublished={frontMatter.date}
|
||||
dateModified={frontMatter.date}
|
||||
images={frontMatter.image && [`${config.baseUrl}${frontMatter.image}`]}
|
||||
|
Reference in New Issue
Block a user