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

getPageByReference #17

Merged
merged 2 commits into from
Oct 21, 2020
Merged

getPageByReference #17

merged 2 commits into from
Oct 21, 2020

Conversation

rodikh
Copy link
Contributor

@rodikh rodikh commented Oct 2, 2020

  • fixed relative path

- fixed relative path
src/unibit.js Outdated
Comment on lines 372 to 376
// remove extension
filePath = path.relative(UNIBIT.pagesDir, filePath);
return _.find(context.site.pages, page => {
const pageUrl = _.get(page, 'relPath');
return filePath === pageUrl;
Copy link
Member

Choose a reason for hiding this comment

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

@rodikh don't forget removing obsolete stuff

  1. comment // remove extension
  2. rename pageUrl to pageRelPath

@stackbit-admin stackbit-admin merged commit 6a22e40 into master Oct 21, 2020
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