mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2026-04-17 10:28:46 -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,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
title: "How To: Safely Rename `master` Branch on GitHub ✊🏾"
|
title: "How To: Safely Rename `master` Branch on GitHub ✊🏾"
|
||||||
date: 2020-06-28 09:28:52-0400
|
date: 2020-06-28 09:28:52-0400
|
||||||
description: "Some of the most popular open-source projects are renaming their default branch from 'master' on GitHub. Here''s how to do so, and safely."
|
description: 'Some of the most popular open-source projects are renaming their default branch from "master" on GitHub. Here''s how to do so, and safely.'
|
||||||
tags:
|
tags:
|
||||||
- How To
|
- How To
|
||||||
- Tutorial
|
- Tutorial
|
||||||
|
|||||||
@@ -43,6 +43,7 @@
|
|||||||
"formik": "^2.2.9",
|
"formik": "^2.2.9",
|
||||||
"gray-matter": "^4.0.3",
|
"gray-matter": "^4.0.3",
|
||||||
"highlight.js": "^11.4.0",
|
"highlight.js": "^11.4.0",
|
||||||
|
"html-escaper": "^3.0.3",
|
||||||
"is-absolute-url": "^4.0.1",
|
"is-absolute-url": "^4.0.1",
|
||||||
"is-email-like": "^2.0.0",
|
"is-email-like": "^2.0.0",
|
||||||
"markdown-to-jsx": "^7.1.5",
|
"markdown-to-jsx": "^7.1.5",
|
||||||
@@ -73,6 +74,7 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@jakejarvis/eslint-config": "github:jakejarvis/eslint-config#main",
|
"@jakejarvis/eslint-config": "github:jakejarvis/eslint-config#main",
|
||||||
"@svgr/webpack": "^6.1.2",
|
"@svgr/webpack": "^6.1.2",
|
||||||
|
"@types/html-escaper": "^3.0.0",
|
||||||
"@types/prop-types": "^15.7.4",
|
"@types/prop-types": "^15.7.4",
|
||||||
"@types/react": "^17.0.38",
|
"@types/react": "^17.0.38",
|
||||||
"@types/react-dom": "^17.0.11",
|
"@types/react-dom": "^17.0.11",
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import { MDXRemote } from "next-mdx-remote";
|
import { MDXRemote } from "next-mdx-remote";
|
||||||
import { serialize } from "next-mdx-remote/serialize";
|
import { serialize } from "next-mdx-remote/serialize";
|
||||||
import { NextSeo, ArticleJsonLd } from "next-seo";
|
import { NextSeo, ArticleJsonLd } from "next-seo";
|
||||||
|
import { escape } from "html-escaper";
|
||||||
import Content from "../../components/Content";
|
import Content from "../../components/Content";
|
||||||
import Meta from "../../components/notes/Meta";
|
import Meta from "../../components/notes/Meta";
|
||||||
import mdxComponents from "../../components/mdxComponents";
|
import mdxComponents from "../../components/mdxComponents";
|
||||||
@@ -42,8 +43,8 @@ const Note = ({ frontMatter, source }) => (
|
|||||||
/>
|
/>
|
||||||
<ArticleJsonLd
|
<ArticleJsonLd
|
||||||
url={frontMatter.permalink}
|
url={frontMatter.permalink}
|
||||||
title={frontMatter.title}
|
title={escape(frontMatter.title)}
|
||||||
description={frontMatter.description}
|
description={escape(frontMatter.description)}
|
||||||
datePublished={frontMatter.date}
|
datePublished={frontMatter.date}
|
||||||
dateModified={frontMatter.date}
|
dateModified={frontMatter.date}
|
||||||
images={frontMatter.image && [`${config.baseUrl}${frontMatter.image}`]}
|
images={frontMatter.image && [`${config.baseUrl}${frontMatter.image}`]}
|
||||||
|
|||||||
10
yarn.lock
10
yarn.lock
@@ -1485,6 +1485,11 @@
|
|||||||
dependencies:
|
dependencies:
|
||||||
"@types/unist" "*"
|
"@types/unist" "*"
|
||||||
|
|
||||||
|
"@types/html-escaper@^3.0.0":
|
||||||
|
version "3.0.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/@types/html-escaper/-/html-escaper-3.0.0.tgz#97d7df443c0fc86e3abdd0971f4814a58e3ca762"
|
||||||
|
integrity sha512-OcJcvP3Yk8mjYwf/IdXZtTE1tb/u0WF0qa29ER07ZHCYUBZXSN29Z1mBS+/96+kNMGTFUAbSz9X+pHmHpZrTCw==
|
||||||
|
|
||||||
"@types/json5@^0.0.29":
|
"@types/json5@^0.0.29":
|
||||||
version "0.0.29"
|
version "0.0.29"
|
||||||
resolved "https://registry.yarnpkg.com/@types/json5/-/json5-0.0.29.tgz#ee28707ae94e11d2b827bcbe5270bcea7f3e71ee"
|
resolved "https://registry.yarnpkg.com/@types/json5/-/json5-0.0.29.tgz#ee28707ae94e11d2b827bcbe5270bcea7f3e71ee"
|
||||||
@@ -3301,6 +3306,11 @@ hosted-git-info@^4.0.1:
|
|||||||
dependencies:
|
dependencies:
|
||||||
lru-cache "^6.0.0"
|
lru-cache "^6.0.0"
|
||||||
|
|
||||||
|
html-escaper@^3.0.3:
|
||||||
|
version "3.0.3"
|
||||||
|
resolved "https://registry.yarnpkg.com/html-escaper/-/html-escaper-3.0.3.tgz#4d336674652beb1dcbc29ef6b6ba7f6be6fdfed6"
|
||||||
|
integrity sha512-RuMffC89BOWQoY0WKGpIhn5gX3iI54O6nRA0yC124NYVtzjmFWBIiFd8M0x+ZdX0P9R4lADg1mgP8C7PxGOWuQ==
|
||||||
|
|
||||||
html-tags@^3.1.0:
|
html-tags@^3.1.0:
|
||||||
version "3.1.0"
|
version "3.1.0"
|
||||||
resolved "https://registry.yarnpkg.com/html-tags/-/html-tags-3.1.0.tgz#7b5e6f7e665e9fb41f30007ed9e0d41e97fb2140"
|
resolved "https://registry.yarnpkg.com/html-tags/-/html-tags-3.1.0.tgz#7b5e6f7e665e9fb41f30007ed9e0d41e97fb2140"
|
||||||
|
|||||||
Reference in New Issue
Block a user