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

Move common function in ducks to utility module #535

Merged
merged 1 commit into from
Nov 20, 2019

Conversation

ashmaroli
Copy link
Member

At the time the filter function was written for data files, the latter resources didn't have a name property. However, now they do.
But on modifying the function to filter by filename, it became evident that the functions defined in ducks for pages, drafts and data files are now identical and can therefore be extracted as a utility function.

Copy link
Member

@mertkahyaoglu mertkahyaoglu left a comment

Choose a reason for hiding this comment

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

👌

@ashmaroli
Copy link
Member Author

Thank you.

@ashmaroli ashmaroli merged commit a592eaf into jekyll:master Nov 20, 2019
@ashmaroli ashmaroli deleted the filter-by-name-utility branch November 20, 2019 07:00
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