-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
Automatically inject css for a md page #202
Comments
Very interesting. It'd also need to support Has anyone else out there wanted something like this? Is there other static site generators that have a similar pattern? |
@KyleAMathews it's doable with yaml in jekyll, it's nice for custom pages. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed due to inactivity. |
* Made componentWithMDXScope a no-op. It is deprecated and doesn't need to be used any more. MDXRenderer is still required for previous uses that required it. * Scopes are now imported via custom webpack loader - TODO: rename mdx-scopes to the loaders dir * Scopes are now merged into a single scope and injected into wrapRootElement on both SSR and Browser renders * Querying code.scope is now a no-op - No files are written when this happens * Relative path import support is added to all MDX Nodes closes gatsbyjs#214 gatsbyjs#202 gatsbyjs#133
Sometimes, a markdown page requires specific css that we might not want to initially load. It would be great if gatsby could automatically load the css based on the filename.
For example, it could be this syntax:
pages/sub/doc.md
--> loadpages/sub/doc.css
pages/sub/doc/index.md
--> loadpages/sub/doc/styles.css
What do you think?
This is not required for js pages because we can import the css inside the js.
The text was updated successfully, but these errors were encountered: