- Written by {author} who lives and works in San - Francisco building useful things. - {` `} - - You should follow him on Twitter - -
-+ Written by {author.id}.{` `} + {author.bio} +
+ ) } -const bioQuery = graphql` - query BioQuery { - avatar: file(absolutePath: { regex: "/profile-pic.jpg/" }) { - childImageSharp { - fixed(width: 50, height: 50) { - ...GatsbyImageSharpFixed - } - } - } - site { - siteMetadata { - author - social { - twitter - } - } - } - } -` - export default Bio diff --git a/src/components/seo.js b/src/components/seo.js index f639bd8..4424065 100644 --- a/src/components/seo.js +++ b/src/components/seo.js @@ -3,7 +3,7 @@ import PropTypes from 'prop-types' import Helmet from 'react-helmet' import { StaticQuery, graphql } from 'gatsby' -function SEO({ description, lang, meta, keywords, title }) { +function SEO({ description, lang, meta, keywords, title, author }) { return (