Skip to content

Commit

Permalink
Merge pull request #38 from skohub-io/add-discourse
Browse files Browse the repository at this point in the history
Add discourse link
  • Loading branch information
sroertgen committed Mar 27, 2024
2 parents 916ee82 + 4031f88 commit 1d3b685
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ module.exports = {
mastodon: `skohub`,
twitter: `skohub`,
github: `skohub-io`,
discourse: "https://metadaten.community/c/software-und-tools/metafacture/8",
},
},
plugins: [
Expand Down
5 changes: 4 additions & 1 deletion src/components/layout.js
Original file line number Diff line number Diff line change
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'
import skohubsvg from '../images/skohub-signet-color.svg'

const Layout = ({ location, title, children }) => {
Expand All @@ -17,6 +17,7 @@ const Layout = ({ location, title, children }) => {
social {
github
mastodon
discourse
}
}
}
Expand Down Expand Up @@ -48,6 +49,8 @@ const Layout = ({ location, title, children }) => {
<li><a href="/rss.xml">RSS-Feed</a></li>
<li><a href={`https://openbiblio.social/@${social?.mastodon || ``}`}>
Mastodon <FontAwesomeIcon icon={faMastodon}/></a></li>
<li><a href={`${social?.discourse || ``}`}>
Discourse <FontAwesomeIcon icon={faDiscourse}/></a></li>
<li><a href={`https://github.com/${social?.github || ``}`}>
GitHub <FontAwesomeIcon icon={faGithub}/></a></li>
</ul>
Expand Down

0 comments on commit 1d3b685

Please sign in to comment.