Replies: 1 comment
-
I just want to add, something else I've been wondering about, but not sure how to implement. Perhaps I should be getting my pageContext in my pages, then pass it on to the layout component for my conditionals to pass on to my header and footer? But the thing is, with |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've run into an issue which I cannot find a solution to and it's starting to feel a bit overwhelming and like I've hit a brick wall.
This problem only comes up in production, no issues in development, which makes it quite hard to troubleshoot.
I have slight variations in my design for different parts our site, like our portfolio page, blog pages, etc. It's subtle changes like, the nav 'color' needing to be either black or white, different background colours and 'color' on the body and footer and so on.
Just to add some complexity, I have
theme-ui
withgatsby-plugin-theme-ui
andgatsby-plugin-transition-link
installed.My header and footer have been the real headache as they sit in my layout component.
I've tried a few possible solutions but keep running into the same brick wall:
I'm not really sure what direction to go from here. I've done tons of reading and research on this but I really am not sure what direction to go, especially considering the extensions mentioned above.
I've read about Gatsby themes, which seem like a solution, but I'm still struggling to wrap my head around how they work.
Is this something that could be solved with something like a state provider using React's Context?
Have I stumbled onto a bug by chance or some kind of conflict between extensions?
Here's my installation info:
Any advice, or a point in the right direction would be greatly appreciated! I have a private repo on my own server for this project as it's for my own company and want to keep it private while it's new. But am willing to share if needed. I also have the site live if that helps for showing the issue.
Beta Was this translation helpful? Give feedback.
All reactions