Skip to content

Commit

Permalink
Upgrade NPM libs + ccosmetics updates
Browse files Browse the repository at this point in the history
  • Loading branch information
nicksp committed Apr 15, 2020
1 parent 7375d14 commit 3d05600
Show file tree
Hide file tree
Showing 5 changed files with 2,867 additions and 3,024 deletions.
2 changes: 1 addition & 1 deletion gatsby-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ import 'typeface-oswald'
import 'typeface-pt-sans'

// syntax hihlighting
require('prism-themes/themes/prism-shades-of-purple.css')
require('prism-themes/themes/prism-nord.css')
64 changes: 32 additions & 32 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,46 +39,46 @@
}
},
"dependencies": {
"@emotion/core": "^10.0.27",
"@emotion/core": "^10.0.28",
"@emotion/styled": "^10.0.27",
"@mdx-js/mdx": "^1.5.5",
"@mdx-js/react": "^1.5.5",
"gatsby": "^2.19.10",
"gatsby-image": "^2.2.39",
"gatsby-plugin-emotion": "^4.1.21",
"gatsby-plugin-feed": "^2.3.26",
"gatsby-plugin-google-analytics": "^2.1.34",
"gatsby-plugin-manifest": "^2.2.40",
"gatsby-plugin-mdx": "^1.0.69",
"gatsby-plugin-offline": "^3.0.33",
"gatsby-plugin-react-helmet": "^3.1.21",
"gatsby-plugin-sharp": "^2.4.4",
"gatsby-plugin-typography": "^2.3.21",
"gatsby-remark-copy-linked-files": "^2.1.36",
"gatsby-remark-embedder": "^1.11.0",
"gatsby-remark-images": "^3.1.43",
"gatsby-remark-prismjs": "^3.3.30",
"gatsby-remark-responsive-iframe": "^2.2.31",
"gatsby-remark-smartypants": "^2.1.20",
"gatsby-source-filesystem": "^2.1.47",
"gatsby-transformer-remark": "^2.6.49",
"gatsby-transformer-sharp": "^2.3.13",
"@mdx-js/mdx": "^1.5.8",
"@mdx-js/react": "^1.5.8",
"gatsby": "^2.20.22",
"gatsby-image": "^2.3.2",
"gatsby-plugin-emotion": "^4.2.1",
"gatsby-plugin-feed": "^2.4.1",
"gatsby-plugin-google-analytics": "^2.2.2",
"gatsby-plugin-manifest": "^2.3.3",
"gatsby-plugin-mdx": "^1.1.7",
"gatsby-plugin-offline": "^3.1.2",
"gatsby-plugin-react-helmet": "^3.2.2",
"gatsby-plugin-sharp": "^2.5.4",
"gatsby-plugin-typography": "^2.4.1",
"gatsby-remark-copy-linked-files": "^2.2.1",
"gatsby-remark-embedder": "^2.0.0",
"gatsby-remark-images": "^3.2.2",
"gatsby-remark-prismjs": "^3.4.1",
"gatsby-remark-responsive-iframe": "^2.3.1",
"gatsby-remark-smartypants": "^2.2.1",
"gatsby-source-filesystem": "^2.2.2",
"gatsby-transformer-remark": "^2.7.1",
"gatsby-transformer-sharp": "^2.4.4",
"hyvor-talk-react": "^1.0.1",
"prism-themes": "^1.3.0",
"prismjs": "^1.19.0",
"prism-themes": "^1.4.0",
"prismjs": "^1.20.0",
"prop-types": "^15.7.2",
"react": "^16.12.0",
"react-dom": "^16.12.0",
"react-helmet": "^5.2.1",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-helmet": "6.0.0",
"react-typography": "^0.16.19",
"typeface-oswald": "^1.1.3",
"typeface-oswald": "^1.1.4",
"typeface-pt-sans": "^0.0.72",
"typography": "^0.16.19",
"typography-theme-stern-grove": "^0.16.19"
},
"devDependencies": {
"husky": "^4.2.1",
"lint-staged": "^10.0.7",
"prettier": "^1.19.1"
"husky": "^4.2.5",
"lint-staged": "^10.1.3",
"prettier": "^2.0.4"
}
}
28 changes: 14 additions & 14 deletions src/components/seo.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'
import PropTypes from 'prop-types'
import Helmet from 'react-helmet'
import { Helmet } from 'react-helmet'
import useSiteMetadata from '../hooks/use-site-metadata'

function SEO({ description, lang, meta, keywords, title }) {
Expand All @@ -10,49 +10,49 @@ function SEO({ description, lang, meta, keywords, title }) {
return (
<Helmet
htmlAttributes={{
lang
lang,
}}
title={title}
titleTemplate={`%s - ${siteMetadata.title}`}
meta={[
{
name: 'description',
content: metaDescription
content: metaDescription,
},
{
property: 'og:title',
content: title
content: title,
},
{
property: 'og:description',
content: metaDescription
content: metaDescription,
},
{
property: 'og:type',
content: 'website'
content: 'website',
},
{
name: 'twitter:card',
content: 'summary'
content: 'summary',
},
{
name: 'twitter:creator',
content: siteMetadata.author
content: siteMetadata.author,
},
{
name: 'twitter:title',
content: title
content: title,
},
{
name: 'twitter:description',
content: metaDescription
}
content: metaDescription,
},
]
.concat(
keywords.length > 0
? {
name: 'keywords',
content: keywords.join(', ')
content: keywords.join(', '),
}
: []
)
Expand All @@ -65,15 +65,15 @@ SEO.defaultProps = {
lang: 'en',
meta: [],
keywords: [],
description: ''
description: '',
}

SEO.propTypes = {
description: PropTypes.string,
lang: PropTypes.string,
meta: PropTypes.arrayOf(PropTypes.object),
keywords: PropTypes.arrayOf(PropTypes.string),
title: PropTypes.string.isRequired
title: PropTypes.string.isRequired,
}

export default SEO
1 change: 1 addition & 0 deletions src/utils/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ pre[class*="language-"] {
pre[class*="language-"] {
overflow: auto;
padding: 1.3125rem;
margin: 0 !important;
}

pre[class*="language-"]::-moz-selection {
Expand Down
Loading

0 comments on commit 3d05600

Please sign in to comment.