mirror of
https://github.com/helenclx/leilukin-site.git
synced 2025-04-04 21:02:41 +00:00
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…
x
Reference in New Issue
Block a user