Skip to content

Commit

Permalink
fix: 🐛 accept preferences and rules
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Reese committed May 26, 2021
1 parent 9dd6606 commit b1d3abc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 13 deletions.
7 changes: 3 additions & 4 deletions packages/markdown/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,9 @@ const plugin = {
}

// if there is a date in frontmatter, sort them by most recent
const haveDates = plugin.markdown[route].reduce(
(out, cv) => out && !!cv.frontmatter && !!cv.frontmatter.date,
true,
);
const haveDates = plugin.markdown[route].reduce((out, cv) => {
return out && !!cv.frontmatter && !!cv.frontmatter.date;
}, true);

if (haveDates) {
plugin.markdown[route] = plugin.markdown[route].sort(
Expand Down
10 changes: 1 addition & 9 deletions packages/markdown/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions packages/seo-check/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ const plugin = {
display: plugin.config.display,
siteWide: plugin.settings.context === 'build',
host,
preferences: plugin.config.preferences,
rules: plugin.config.rules,
});

return plugin;
Expand Down

0 comments on commit b1d3abc

Please sign in to comment.