Skip to content

Commit

Permalink
Merge pull request #37 from metafacture/add-discourse
Browse files Browse the repository at this point in the history
Add discourse
  • Loading branch information
sroertgen committed Mar 21, 2024
2 parents 2c94077 + 43023ea commit 95036a2
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
1 change: 1 addition & 0 deletions gatsby-config.js
Expand Up @@ -9,6 +9,7 @@ module.exports = {
social: {
mastodon: `metafacture`,
github: `metafacture`,
discourse: "https://metadaten.community/c/software-und-tools/metafacture/8"
},
},
plugins: [
Expand Down
12 changes: 11 additions & 1 deletion src/components/bio.js
Expand Up @@ -9,7 +9,7 @@ import * as React from "react"
import { useStaticQuery, graphql } from "gatsby"
import { StaticImage } from "gatsby-plugin-image"
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { faGithub, faMastodon } from '@fortawesome/free-brands-svg-icons'
import { faGithub, faMastodon, faDiscourse } from '@fortawesome/free-brands-svg-icons'

const Bio = () => {
const data = useStaticQuery(graphql`
Expand All @@ -22,6 +22,7 @@ const Bio = () => {
social {
mastodon
github
discourse
}
description
}
Expand Down Expand Up @@ -71,6 +72,15 @@ const Bio = () => {
}}>
<FontAwesomeIcon size="1x" icon={faGithub} />
</a>
<a href={`${social.discourse}`}
style={{
fontSize: `1.75em`,
padding: `0em 0.2em`,
color: `#000`,
boxShadow: `none`,
}}>
<FontAwesomeIcon size="1x" icon={faDiscourse} />
</a>
</p>
</div>
)}
Expand Down
7 changes: 6 additions & 1 deletion src/components/layout.js
Expand Up @@ -2,7 +2,7 @@ import * as React from "react"
import { useStaticQuery, graphql } from "gatsby"
import { Link } from "gatsby"
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { faGithub, faMastodon } from '@fortawesome/free-brands-svg-icons'
import { faGithub, faMastodon, faDiscourse } from '@fortawesome/free-brands-svg-icons'

const Layout = ({ location, title, children }) => {
const rootPath = `${__PATH_PREFIX__}/`
Expand All @@ -16,6 +16,7 @@ const Layout = ({ location, title, children }) => {
social {
mastodon
github
discourse
}
}
}
Expand Down Expand Up @@ -53,6 +54,10 @@ const Layout = ({ location, title, children }) => {
GitHub <FontAwesomeIcon icon={faGithub} size="1x" style={{ color: `#000` }} />
</a>
{` | `}
<a href={`${social?.discourse || ``}`}>
Discourse <FontAwesomeIcon icon={faDiscourse} size="1x" style={{ color: `#000` }} />
</a>
{` | `}
<a href="/rss.xml">Feed</a>
</div>
)
Expand Down

0 comments on commit 95036a2

Please sign in to comment.