Self::starter

Add author to copyright

By this time, you may want to recognize yourself as the author of your blog and add it to the footer of your site. Note that we still build with Gatsby.

First, you will need to add yourself as the other of your site in your Gatsby config file, if you haven’t done already.

  siteMetadata: {
    title: `Title of your site`,
    description: `Description of your site`,
    subtitle: `Sourcing data from WordPress`,
    author: `Your name here`,
  },

Then, you may need to add author to the static query of your template component.

  const data = useStaticQuery(graphql`
    query SiteTitleQuery {
      site {
        siteMetadata {
          title
	  author 
        }
      }
    }
  `)

Then, below in the render section, add author to the copyright line of your footer.

<footer>
          &copy; {new Date().getFullYear()} {data.site.siteMetadata.author}, Built with
          {` `}
          <a href="https://www.gatsbyjs.org">Gatsby</a>        
</footer>

What was

c Year , Built with Gatsby

is now

© Year Your name, Built with Gatsby

Now you’re in business!

Next: Order posts by date

Previous: Add previous/next links to post template

...