Rename item limit filter
This commit is contained in:
parent
5e195da5ab
commit
743617d340
|
@ -121,9 +121,9 @@ module.exports = function (eleventyConfig) {
|
||||||
return dateTimeLocale.format(date);
|
return dateTimeLocale.format(date);
|
||||||
});
|
});
|
||||||
|
|
||||||
// Filter: Limit
|
// Filter: Limit number of items displayed
|
||||||
eleventyConfig.addFilter("limit", function(array, limit) {
|
eleventyConfig.addFilter("itemLimit", function(array, itemLimit) {
|
||||||
return array.slice(0, limit);
|
return array.slice(0, itemLimit);
|
||||||
});
|
});
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Reference in New Issue