From 6f5b8ccab1530a7daac763112be1f2641501d738 Mon Sep 17 00:00:00 2001
From: sitek94
Date: Wed, 23 Dec 2020 00:37:43 +0100
Subject: [PATCH] remove unused code and update social links
---
config/website.js | 15 +--
gatsby-config.js | 11 --
netlify.toml | 5 -
package.json | 1 -
src/components/footer.js | 5 +-
src/components/mobile-nav.js | 13 +-
src/components/seo/index.js | 18 ---
src/components/seo/schema-org.js | 7 -
src/components/share.js | 58 --------
src/components/social.js | 63 +++------
src/components/testing-cta.js | 219 -------------------------------
src/data/courses.js | 132 -------------------
src/pages/about.mdx | 7 -
src/templates/post.js | 12 --
src/templates/project-page.js | 4 -
15 files changed, 29 insertions(+), 541 deletions(-)
delete mode 100644 src/components/share.js
delete mode 100644 src/components/testing-cta.js
delete mode 100644 src/data/courses.js
diff --git a/config/website.js b/config/website.js
index d545b04..90b1a70 100644
--- a/config/website.js
+++ b/config/website.js
@@ -2,7 +2,7 @@ module.exports = {
siteTitle: 'Maciek Sitkowski', // Navigation and Site Title
siteTitleAlt: 'The personal website of Maciek Sitkowski', // Alternative Site title for SEO
siteTitleShort: 'macieksitkowski', // short_name for manifest
- siteUrl: process.env.ROOT_URL || 'https://kentcdodds.com', // Domain of your site. No trailing slash!
+ siteUrl: process.env.ROOT_URL || 'https://macieksitkowski.com', // Domain of your site. No trailing slash!
lang: 'en', // Language Tag on element
pathPrefix: '/',
siteLogo: 'images/logo.png', // Used for SEO and manifest, path to your image you placed in the 'static' folder
@@ -15,10 +15,7 @@ module.exports = {
lives with his wife and four kids in Utah.
`,
author: 'Maciek Sitkowski', // Author for schemaORGJSONLD
- organization: 'Maciek Sitkowski Tech LLC',
- // siteFBAppID: '123456789', // Facebook App ID - Optional
- userTwitter: '@kentcdodds', // Twitter Username
ogSiteName: 'Maciek Sitkowski', // Facebook Site Name
ogLanguage: 'en_US',
@@ -27,10 +24,8 @@ module.exports = {
backgroundColor: '#231C42',
// Social component
- twitter: 'https://twitter.com/kentcdodds/',
- twitterHandle: '@kentcdodds',
- github: 'https://github.com/kentcdodds/',
- linkedin: 'https://www.linkedin.com/in/kentcdodds/',
- youtube: 'https://www.youtube.com/channel/UCz-BYvuntVRt_VpfR6FKXJw',
- rss: 'https://kentcdodds.com/blog/rss.xml',
+ github: 'https://github.com/sitek94/',
+ // linkedin: 'https://www.linkedin.com/in/kentcdodds/',
+ youtube: 'https://www.youtube.com/channel/UC1rKQAm9EWiHtI4ADYusG0w',
+ freeCodeCamp: 'https://forum.freecodecamp.org/u/sitek94/summary',
}
diff --git a/gatsby-config.js b/gatsby-config.js
index 684050f..7aa8932 100644
--- a/gatsby-config.js
+++ b/gatsby-config.js
@@ -32,7 +32,6 @@ module.exports = {
siteMetadata: {
siteUrl,
title: config.siteTitle,
- twitterHandle: config.twitterHandle,
description: config.siteDescription,
keywords: [
'Software Engineer',
@@ -45,15 +44,6 @@ module.exports = {
name: config.author,
minibio: config.minibio,
},
- organization: {
- name: config.organization,
- url: siteUrl,
- logo: config.siteLogo,
- },
- social: {
- twitter: config.twitterHandle,
- fbAppID: '',
- },
},
plugins: [
{
@@ -111,7 +101,6 @@ module.exports = {
},
},
'gatsby-plugin-workerize-loader',
- 'gatsby-plugin-twitter',
'gatsby-plugin-sharp',
'gatsby-transformer-sharp',
'gatsby-plugin-emotion',
diff --git a/netlify.toml b/netlify.toml
index fcfa0ff..5445831 100644
--- a/netlify.toml
+++ b/netlify.toml
@@ -1,8 +1,3 @@
-[[headers]]
- for = "/rss.xml"
- [headers.values]
- Access-Control-Allow-Origin = "*"
-
[[plugins]]
package = "netlify-plugin-gatsby-cache"
diff --git a/package.json b/package.json
index b98650a..92d8489 100644
--- a/package.json
+++ b/package.json
@@ -33,7 +33,6 @@
"gatsby-plugin-robots-txt": "^1.5.3",
"gatsby-plugin-sharp": "^2.10.1",
"gatsby-plugin-sitemap": "^2.8.0",
- "gatsby-plugin-twitter": "^2.6.0",
"gatsby-plugin-typography": "^2.8.0",
"gatsby-plugin-workerize-loader": "^1.5.0",
"gatsby-remark-autolink-headers": "^2.7.0",
diff --git a/src/components/footer.js b/src/components/footer.js
index 0983f4e..bc81d0f 100644
--- a/src/components/footer.js
+++ b/src/components/footer.js
@@ -3,7 +3,7 @@ import {css} from '@emotion/react'
import theme from '../../config/theme'
import {bpMaxSM} from '../lib/breakpoints'
import SubscribeForm from './forms/subscribe'
-import {Twitter, GitHub, YouTube, RSS} from './social'
+import {GitHub, YouTube, FreeCodeCamp} from './social'
import Container from './container'
import particlesOptions from 'lib/particles.json'
@@ -65,10 +65,9 @@ const Footer = ({subscribeForm = , maxWidth}) => (
`}
>
-
+
-
diff --git a/src/components/mobile-nav.js b/src/components/mobile-nav.js
index 2257a58..f31ac31 100644
--- a/src/components/mobile-nav.js
+++ b/src/components/mobile-nav.js
@@ -99,17 +99,14 @@ const Toggle = ({color = 'white'}) => {
}
`}
>
-
- Blog
+
+ About
-
+
Projects
-
- Courses
-
-
- About
+
+ Contact
diff --git a/src/components/seo/index.js b/src/components/seo/index.js
index 7c3ae97..7919323 100644
--- a/src/components/seo/index.js
+++ b/src/components/seo/index.js
@@ -36,14 +36,6 @@ function SEO({
-
-
- {/* Twitter Card tags */}
-
-
-
-
-
>
@@ -75,15 +66,6 @@ function SEOWithQuery(props) {
author {
name
}
- organization {
- name
- url
- logo
- }
- social {
- twitter
- fbAppID
- }
}
}
}
diff --git a/src/components/seo/schema-org.js b/src/components/seo/schema-org.js
index 3142321..7c4dd30 100644
--- a/src/components/seo/schema-org.js
+++ b/src/components/seo/schema-org.js
@@ -10,7 +10,6 @@ export default React.memo(
description,
image,
isBlogPost,
- organization,
title,
url,
}) => {
@@ -58,12 +57,6 @@ export default React.memo(
'@type': 'Person',
name: author.name,
},
- publisher: {
- '@type': 'Organization',
- url: organization.url,
- logo: organization.logo,
- name: organization.name,
- },
mainEntityOfPage: {
'@type': 'WebSite',
'@id': canonicalUrl,
diff --git a/src/components/share.js b/src/components/share.js
deleted file mode 100644
index fa7ad0c..0000000
--- a/src/components/share.js
+++ /dev/null
@@ -1,58 +0,0 @@
-import * as React from 'react'
-import {css} from '@emotion/react'
-import theme from '../../config/theme'
-
-import {TwitterShareButton, FacebookShareButton} from 'react-share'
-
-const Share = ({url, title, twitterHandle}) => (
-
-
-
Share article
-
- Twitter
-
-
- Facebook
-
-
-)
-
-export default Share
diff --git a/src/components/social.js b/src/components/social.js
index 18cbdfb..8d45265 100644
--- a/src/components/social.js
+++ b/src/components/social.js
@@ -3,36 +3,6 @@ import Link from './link'
import {css} from '@emotion/react'
import config from '../../config/website'
-export const Twitter = ({
- color = `rgba(255,255,255,0.7)`,
- url = `${config.twitter}`,
-}) => (
-
-
-
-)
-
export const LinkedIn = ({
color = `rgba(255,255,255,0.7)`,
url = `${config.linkedin}`,
@@ -50,8 +20,8 @@ export const LinkedIn = ({
>
-
-
-
diff --git a/src/templates/project-page.js b/src/templates/project-page.js
index f3f33e0..a849ca6 100644
--- a/src/templates/project-page.js
+++ b/src/templates/project-page.js
@@ -23,10 +23,6 @@ export default function ProjectPage({data: {site, mdx}}) {
css={css`
width: 100%;
display: flex;
- twitter-widget {
- margin-left: auto;
- margin-right: auto;
- }
`}
>