chore: cleanup
This commit is contained in:
parent
7ec3c83112
commit
4302f61f8c
4 changed files with 10 additions and 10 deletions
|
@ -26,8 +26,8 @@ export const cssConfig = (eleventyConfig) => {
|
|||
await fs.writeFile(outputPath, result.css)
|
||||
|
||||
return result.css
|
||||
};
|
||||
}
|
||||
}
|
||||
},
|
||||
});
|
||||
};
|
||||
})
|
||||
}
|
|
@ -2,10 +2,10 @@ import slugify from 'slugify'
|
|||
|
||||
export const shuffleArray = array => {
|
||||
for (let i = array.length - 1; i > 0; i--) {
|
||||
let j = Math.floor(Math.random() * (i + 1));
|
||||
let temp = array[i];
|
||||
array[i] = array[j];
|
||||
array[j] = temp;
|
||||
let j = Math.floor(Math.random() * (i + 1))
|
||||
let temp = array[i]
|
||||
array[i] = array[j]
|
||||
array[j] = temp
|
||||
}
|
||||
return array
|
||||
}
|
||||
|
|
Reference in a new issue