blog menu page & blog article page

This commit is contained in:
Nina Juresic
2017-10-23 15:54:25 +02:00
parent f21a22b539
commit 3ec0fe7455
3048 changed files with 241133 additions and 432 deletions

35
node_modules/array-slice/index.js generated vendored Executable file
View File

@@ -0,0 +1,35 @@
/*!
* array-slice <https://github.com/jonschlinkert/array-slice>
*
* Copyright (c) 2014-2015, 2017, Jon Schlinkert.
* Released under the MIT License.
*/
'use strict';
module.exports = function slice(arr, start, end) {
var len = arr.length;
var range = [];
start = idx(arr, start);
end = idx(arr, end, len);
while (start < end) {
range.push(arr[start++]);
}
return range;
};
function idx(arr, pos, end) {
var len = arr.length;
if (pos == null) {
pos = end || 0;
} else if (pos < 0) {
pos = Math.max(len + pos, 0);
} else {
pos = Math.min(pos, len);
}
return pos;
}