I'm a total React newbie and I guess there is something fundamental I don't quite understand here. A default Gatsby page looks like this. Is there a way to use a local .js file somewhat like this?  <script src="../script/script.js"...
I want to create a route that uses a slug as a parameter in my gatsby generated website.  I have a list of projects that sit on the route /projects/<slug>.  Usually with react router I would create a route like so:  <Route exact path='/p...
I am looking for help with GatsbyJS and Contentful. The docs aren't quite giving me enough info.  I am looking to programmatically create pages based on contentful data. In this case, the data type is a retail "Store" with a gatsby page a...
I would like to pass state to a sibling or even a grandparent whatever.  I have 3 components. Inside Header, I have a button with an onClick function to toggle a Dropdown Menu inside Navigation. And by the way, I would like to pass the same state to...
I am trying to make a doughnut chart with react and gatsbyjs. The chart works fine but I can not get it to use the full width of the div. It displays too small for the area reserved.  render (){     return (              <Doughnut...
I am new to Gatsby and its graphQL query system to retrieve assets. I have a working component Image that fetches an image and displays it. I want to have the name of the image customizable but I can't figure out how to dit.   Here is the working...
In the Contentful CMS, I have two different content-types: BigCaseStudy and BigCaseStudySection. To get this content to appear in my Gatsby 2.x site, my thinking was:   Do query 1, which gets all the BigCaseStudy fields I want to display, and also co...
So, I have been investigating this bug for a while now and I think I got to the root cause of it. I have a navbar that changes if the user is logged in or not. On server render (I am using gatsby), this property is obviously always false meaning that...
I am working on a Gatsby project (a language learning blog) and am having trouble with an issue that only happens in production builds due to server-side rendering.  I programmatically generate a page for each blog post with the following scheme: /po...
We're bringing in some posts from a Wordpress backend, some have pictures (in an ACF field) and some don't.  The problem is that Gatsby infers the schema based off of the first node it receives.  If it receives a node without a picture, then...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.