{data.sanityPost._createdAt}
+{data.sanityPost.title}
-{data.sanityPost.excerpt}
+{data.sanityPost.title}
+{data.sanityPost.excerpt}
{data.sanityPost.author.name}
+{data.sanityPost.author.name}
+{data.sanityPost._createdAt}
+diff --git a/src/components/pages/blogPost.js b/src/components/pages/blogPost.js
index ac2186f..b1b7bad 100644
--- a/src/components/pages/blogPost.js
+++ b/src/components/pages/blogPost.js
@@ -3,7 +3,7 @@ import * as styles from "./blogPost.module.css"
import Seo from "../seo"
import { graphql } from "gatsby"
import { GatsbyImage } from "gatsby-plugin-image"
-import PortableText from "@sanity/block-content-to-react"
+import BlockContent from "@sanity/block-content-to-react"
import urlBuilder from "@sanity/image-url"
export const query = graphql`
@@ -15,7 +15,7 @@ export const query = graphql`
name
image {
asset {
- gatsbyImageData(width: 64, height: 64)
+ gatsbyImageData(width: 50, height: 50)
}
}
}
@@ -26,36 +26,11 @@ export const query = graphql`
}
}
excerpt
- body {
- children {
- _key
- _type
- text
- marks
- }
- _type
- list
- style
- }
+ _rawBody(resolveReferences: { maxDepth: 10 })
}
}
`
-const urlFor = source =>
- urlBuilder({ projectId: "mmqlu667", dataset: "production" }).image(source)
-
-const serializer = {
- types: {
- mainImage: props => (
-
-
-
{data.sanityPost._createdAt}
+{data.sanityPost.excerpt}
+{data.sanityPost.excerpt}
{data.sanityPost.author.name}
+{data.sanityPost.author.name}
+{data.sanityPost._createdAt}
+