text: import React, { Component } from "react"
  import PropTypes from "prop-types"
  import Img from "gatsby-image"
  
  class PostTemplate extends Component {
      render() {
          const post = this.props.data.wordpressPost
  
          return (
              <div>
                  <h1 dangerouslySetInnerHTML={{ __html: post.title }} />
                  <div dangerouslySetInnerHTML={{ __html: post.content }} />
                  <img src={post.featured_media.source_url} />
              </div>
          )
      }
  }
  
  
  export default PostTemplate
  
  export const pageQuery = graphql`
      query currentPostQuery($id: String!) {
          wordpressPost(id: { eq: $id }) {
              title
              content
              featured_media {
                  source_url
              }
          }
          site {
              siteMetadata {
                  title
                  subtitle
              }
          }
      }
  `