text: import React from "react"
  import { Link } from "gatsby"
  
  class Layout extends React.Component {
    render() {
      const { location, title, children } = this.props
      const rootPath = `${__PATH_PREFIX__}/`
      let header
  
      if (location.pathname === rootPath) {
        header = (
          <h1>
            <Link
              to={`/`}
            >
              {title}
            </Link>
          </h1>
        )
      } else {
        header = (
          <h3>
            <Link
              to={`/`}
            >
              {title}
            </Link>
          </h3>
        )
      }
      return (
        <section>
          <header>{header}</header>
          <main>{children}</main>
          <footer>
            © {new Date().getFullYear()}, Built with
            {` `}
            <a href="https://www.gatsbyjs.org">Gatsby</a> deployed to 
            {` `}
            <a href="https://www.netlify.com">Netlify</a>
            <a style={{ float: `right`}} href="/rss.xml">RSS</a>
          </footer>
        </section>
      )
    }
  }
  
  export default Layout
  