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

DOCSP-6902: Fix image includes #115

Merged
merged 1 commit into from
Sep 26, 2019
Merged

DOCSP-6902: Fix image includes #115

merged 1 commit into from
Sep 26, 2019

Conversation

sophstad
Copy link
Member

[JIRA] [Manual Staging]

  • Fix images added by the include directive
  • Clean up miscellaneous code in gatsby-node.js

@@ -87,6 +92,17 @@ const populateIncludeNodes = nodes => {
return nodes.map(replaceInclude);
};

// Get various metadata for a given page
const getPageMetadata = pageNode => {
const children = getNestedValue(['ast', 'children'], pageNode);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You think it'd be better if getIncludeFile took in an object instead of 2 params. Then within that object you had filename property and includeObj property or something similar?

@danielborowski
Copy link
Contributor

otherwise LGTM

@sophstad sophstad merged commit 6f9e641 into master Sep 26, 2019
@sophstad sophstad deleted the DOCSP-6902 branch September 26, 2019 15:42
graysonhicks pushed a commit that referenced this pull request Jan 20, 2023
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.

2 participants