@elderjs/plugin-markdown
Advanced tools
Comparing version 0.1.10 to 0.1.11
@@ -83,3 +83,7 @@ const glob = require('glob'); | ||
// if there is a date in frontmatter, sort them by most recent | ||
const haveDates = plugin.markdown[route].reduce((out, cv) => cv.frontmatter && cv.frontmatter.date && out); | ||
const haveDates = plugin.markdown[route].reduce( | ||
(out, cv) => out && !!cv.frontmatter && !!cv.frontmatter.date, | ||
true, | ||
); | ||
if (haveDates) { | ||
@@ -86,0 +90,0 @@ plugin.markdown[route] = plugin.markdown[route].sort( |
{ | ||
"name": "@elderjs/plugin-markdown", | ||
"version": "0.1.10", | ||
"version": "0.1.11", | ||
"description": "Easily create routes from your markdown files on your Elder.js site using the remark ecosystem.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15061
277