Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gatsby create page fix #309

Merged
merged 1 commit into from
Apr 16, 2021
Merged

Conversation

eharkins
Copy link
Contributor

this fixes unintended rendering of certain pages in the dir:
static-site/src/pages. Gatsby auto-creates pages
from js,jsx pages in this directory. This issue was raised here:
#299 (comment)
In some cases, we want to call createPage in static-site/gatsby-node.js
to create multiple other pages under a certain URL, so this
puts those in static-site/src/sections as a workaround to avoid
rendering of pages at a URL matching the exact name of the
file (such as nextstrain.org/influenza-page). These
files are intended to help render pages matching
a specified URL (such as nextstrain.org/influenza/*).

this fixes unintended rendering of certain pages in the dir:
static-site/src/pages. Gatsby auto-creates pages
from js,jsx pages in this directory. This issue was raised here:
#299 (comment)
In some cases, we want to call createPage in static-site/gatsby-node.js
to create multiple other pages under a certain URL, so this
puts those in static-site/src/sections as a workaround to avoid
rendering of pages at a URL matching the exact name of the
file (such as nextstrain.org/influenza-page). These
files are intended to help render pages matching
a specified URL (such as nextstrain.org/influenza/*).
@tsibley tsibley temporarily deployed to nextstrain-s-gatsby-met-ulie7f April 16, 2021 00:43 Inactive
@jameshadfield jameshadfield merged commit b909018 into url-filter-params Apr 16, 2021
@jameshadfield jameshadfield deleted the gatsby-meta-pages branch April 16, 2021 04:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants