From 39c61fe694a335437c0a33a712259dd410189772 Mon Sep 17 00:00:00 2001 From: jonathan Date: Tue, 28 Mar 2023 15:37:11 +1030 Subject: [PATCH] add 'recent updates' section --- .eleventy.js | 5 +++++ src/_includes/partials/link_tiles.njk | 2 +- src/_includes/styles.css | 13 +++++++++++++ src/index.md | 9 +++++++++ 4 files changed, 28 insertions(+), 1 deletion(-) diff --git a/.eleventy.js b/.eleventy.js index 89c0128..7e377b0 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -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")) { diff --git a/src/_includes/partials/link_tiles.njk b/src/_includes/partials/link_tiles.njk index 433d838..e1284ca 100644 --- a/src/_includes/partials/link_tiles.njk +++ b/src/_includes/partials/link_tiles.njk @@ -1,5 +1,5 @@