You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
btw by change your gastby-node.js to above and use gatsby remark image i can fix the issue
and i make this repo because i can't contact you... it may be better if you can just add a comment of it so we can choose to uncomment it iin the real repo
my config :
module.exports = {
siteMetadata: {
title: muhzulzidan,
author: muhzulzidan,
description: A student,
siteUrl: https://muhzulzidan.com/,
social: {
twitter: muhzulzidan,
},
},
plugins: [
gatsby-plugin-react-helmet,
{
resolve: gatsby-source-filesystem,
options: {
name: images,
path: ${__dirname}/src/images,
},
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'src',
path: ${__dirname}/src/,
},
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'src',
path: ${__dirname}/public/static/,
},
},
my blog-post template :
import React from 'react'
import { graphql } from 'gatsby'
import Helmet from 'react-helmet'
import get from 'lodash/get'
// import Img from 'gatsby-image'
import Layout from '../components/layout'
class BlogPostTemplate extends React.Component {
render() {
const post = get(this.props, 'data.cockpitMarkdown.childMarkdownRemark')
}
}
export default BlogPostTemplate
export const pageQuery = graphql`
query MyQuery ($slug: String!){
site {
siteMetadata {
title
}
}
cockpitMarkdown(childMarkdownRemark: {frontmatter: {slug: {eq:$slug }}}) {
childMarkdownRemark {
html
frontmatter {
slug
title
tags
date (formatString: "MMMM DD, YYYY")
}
}
}
}
`
and i get
The text was updated successfully, but these errors were encountered: