Skip to content

Commit 5a063b1

Browse files
committed
Remove twitter links #34
1 parent c98fa52 commit 5a063b1

File tree

5 files changed

+33
-68
lines changed

5 files changed

+33
-68
lines changed

gatsby-config.js

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ module.exports = {
88
siteUrl: `https://blog.metafacture.org/`,
99
social: {
1010
mastodon: `metafacture`,
11-
twitter: `metafacture`,
1211
github: `metafacture`,
1312
},
1413
},

gatsby-node.js

-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ exports.createSchemaCustomization = ({ actions }) => {
8989
}
9090
9191
type Social {
92-
twitter: String
9392
mastodon: String
9493
}
9594

src/components/bio.js

+29-38
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import * as React from "react"
99
import { useStaticQuery, graphql } from "gatsby"
1010
import { StaticImage } from "gatsby-plugin-image"
1111
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
12-
import { faGithub, faTwitter, faMastodon } from '@fortawesome/free-brands-svg-icons'
12+
import { faGithub, faMastodon } from '@fortawesome/free-brands-svg-icons'
1313

1414
const Bio = () => {
1515
const data = useStaticQuery(graphql`
@@ -21,7 +21,6 @@ const Bio = () => {
2121
}
2222
social {
2323
mastodon
24-
twitter
2524
github
2625
}
2726
description
@@ -36,7 +35,7 @@ const Bio = () => {
3635
const social = data.site.siteMetadata?.social
3736

3837
return (
39-
<div className="bio">
38+
<div className="bio">
4039
<StaticImage
4140
className="bio-avatar"
4241
layout="fixed"
@@ -47,41 +46,33 @@ const Bio = () => {
4746
alt="Metafacture ant"
4847
/>
4948
{author?.name && (
50-
<div>
51-
<p>
52-
{description}
53-
{` `}
54-
This blog is maintained by <strong>{author.name}</strong>.
55-
</p>
56-
<p>
57-
<a href={`https://openbiblio.social/@${social?.mastodon || ``}`}
58-
style={{
59-
fontSize: `1.75em`,
60-
padding: `0em 0.2em`,
61-
color: `#3088d4`,
62-
boxShadow: `none`,
63-
}}>
64-
<FontAwesomeIcon size="1x" icon={faMastodon}/>
65-
</a>
66-
<a href={`https://twitter.com/${social?.twitter || ``}`}
67-
style={{
68-
fontSize: `1.75em`,
69-
padding: `0em 0.2em`,
70-
boxShadow: `none`,
71-
}}>
72-
<FontAwesomeIcon size="1x" icon={faTwitter}/>
73-
</a>
74-
<a href={`https://www.github.com/${social?.github || ``}`}
75-
style={{
76-
fontSize: `1.75em`,
77-
padding: `0em 0.2em`,
78-
color: `#000`,
79-
boxShadow: `none`,
80-
}}>
81-
<FontAwesomeIcon size="1x" icon={faGithub}/>
82-
</a>
83-
</p>
84-
</div>
49+
<div>
50+
<p>
51+
{description}
52+
{` `}
53+
This blog is maintained by <strong>{author.name}</strong>.
54+
</p>
55+
<p>
56+
<a href={`https://openbiblio.social/@${social?.mastodon || ``}`}
57+
style={{
58+
fontSize: `1.75em`,
59+
padding: `0em 0.2em`,
60+
color: `#3088d4`,
61+
boxShadow: `none`,
62+
}}>
63+
<FontAwesomeIcon size="1x" icon={faMastodon} />
64+
</a>
65+
<a href={`https://www.github.com/${social?.github || ``}`}
66+
style={{
67+
fontSize: `1.75em`,
68+
padding: `0em 0.2em`,
69+
color: `#000`,
70+
boxShadow: `none`,
71+
}}>
72+
<FontAwesomeIcon size="1x" icon={faGithub} />
73+
</a>
74+
</p>
75+
</div>
8576
)}
8677
</div>
8778
)

src/components/layout.js

+4-9
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import * as React from "react"
22
import { useStaticQuery, graphql } from "gatsby"
33
import { Link } from "gatsby"
44
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
5-
import { faGithub, faTwitter, faMastodon } from '@fortawesome/free-brands-svg-icons'
5+
import { faGithub, faMastodon } from '@fortawesome/free-brands-svg-icons'
66

7-
const Layout = ({ location, title, children }) => {
7+
const Layout = ({ location, title, children }) => {
88
const rootPath = `${__PATH_PREFIX__}/`
99
const isRootPath = location.pathname === rootPath
1010
let header
@@ -15,7 +15,6 @@ const Layout = ({ location, title, children }) => {
1515
siteMetadata {
1616
social {
1717
mastodon
18-
twitter
1918
github
2019
}
2120
}
@@ -47,15 +46,11 @@ const Layout = ({ location, title, children }) => {
4746
<a href="http://www.metafacture.org">Metafacture.org</a>
4847
{` | `}
4948
<a href={`https://openbiblio.social/@${social?.mastodon || ``}`}>
50-
Mastodon <FontAwesomeIcon icon={faMastodon} size="1x" style={{ color: `#3088d4`}}/>
51-
</a>
52-
{` | `}
53-
<a href={`https://twitter.com/${social?.twitter || ``}`}>
54-
Twitter <FontAwesomeIcon size="1x" icon={faTwitter}/>
49+
Mastodon <FontAwesomeIcon icon={faMastodon} size="1x" style={{ color: `#3088d4` }} />
5550
</a>
5651
{` | `}
5752
<a href={`https://www.github.com/${social?.github || ``}`}>
58-
GitHub <FontAwesomeIcon icon={faGithub} size="1x" style={{ color: `#000`}}/>
53+
GitHub <FontAwesomeIcon icon={faGithub} size="1x" style={{ color: `#000` }} />
5954
</a>
6055
{` | `}
6156
<a href="/rss.xml">Feed</a>

src/components/seo.js

-19
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ const SEO = ({ description, lang, meta, title }) => {
1818
siteMetadata {
1919
title
2020
description
21-
social {
22-
twitter
23-
}
2421
}
2522
}
2623
}
@@ -54,22 +51,6 @@ const SEO = ({ description, lang, meta, title }) => {
5451
property: `og:type`,
5552
content: `website`,
5653
},
57-
{
58-
name: `twitter:card`,
59-
content: `summary`,
60-
},
61-
{
62-
name: `twitter:creator`,
63-
content: site.siteMetadata?.social?.twitter || ``,
64-
},
65-
{
66-
name: `twitter:title`,
67-
content: title,
68-
},
69-
{
70-
name: `twitter:description`,
71-
content: metaDescription,
72-
},
7354
].concat(meta)}
7455
/>
7556
)

0 commit comments

Comments
 (0)