1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-06-30 22:46:39 -04:00
2022-01-07 10:36:26 -05:00
parent 8936dba74e
commit b13923b3b7
4 changed files with 16 additions and 3 deletions

View File

@ -1,7 +1,7 @@
---
title: "How To: Safely Rename `master` Branch on GitHub ✊🏾"
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:
- How To
- Tutorial

View File

@ -43,6 +43,7 @@
"formik": "^2.2.9",
"gray-matter": "^4.0.3",
"highlight.js": "^11.4.0",
"html-escaper": "^3.0.3",
"is-absolute-url": "^4.0.1",
"is-email-like": "^2.0.0",
"markdown-to-jsx": "^7.1.5",
@ -73,6 +74,7 @@
"devDependencies": {
"@jakejarvis/eslint-config": "github:jakejarvis/eslint-config#main",
"@svgr/webpack": "^6.1.2",
"@types/html-escaper": "^3.0.0",
"@types/prop-types": "^15.7.4",
"@types/react": "^17.0.38",
"@types/react-dom": "^17.0.11",

View File

@ -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}`]}

View File

@ -1485,6 +1485,11 @@
dependencies:
"@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":
version "0.0.29"
resolved "https://registry.yarnpkg.com/@types/json5/-/json5-0.0.29.tgz#ee28707ae94e11d2b827bcbe5270bcea7f3e71ee"
@ -3301,6 +3306,11 @@ hosted-git-info@^4.0.1:
dependencies:
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:
version "3.1.0"
resolved "https://registry.yarnpkg.com/html-tags/-/html-tags-3.1.0.tgz#7b5e6f7e665e9fb41f30007ed9e0d41e97fb2140"