add 'recent updates' section

This commit is contained in:
2023-03-28 15:37:11 +10:30
parent 2e23103e63
commit 39c61fe694
4 changed files with 28 additions and 1 deletions

View File

@ -26,6 +26,11 @@ module.exports = function (eleventyConfig) {
return tagsList;
});
// limit filter
eleventyConfig.addFilter("limit", function (array, limit) {
return array.slice(0, limit);
});
// minify all html files
eleventyConfig.addTransform("htmlmin", function (content) {
if (this.page.outputPath && this.page.outputPath.endsWith(".html")) {