diff --git a/.eleventy.js b/.eleventy.js index 45e5b23..d94c1eb 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -15,10 +15,12 @@ module.exports = function (eleventyConfig) { }).setLocale("de").toLocaleString(DateTime.DATE_FULL) }) + // Filter for showing excerpts of posts on the "/posts/" site, limited to 180 characters (about 4 lines on mobile) eleventyConfig.addFilter("excerpt", (post) => { const content = post.replace(/(<([^>]+)>)/gi, ""); - return content.substr(0, content.lastIndexOf(" ", 200)) + "..."; + return content.substr(0, content.lastIndexOf(" ", 180)) + "..."; }); + return { passthroughFileCopy: true, dir: { diff --git a/src/_includes/model-list.njk b/src/_includes/model-list.njk new file mode 100644 index 0000000..5db8bc9 --- /dev/null +++ b/src/_includes/model-list.njk @@ -0,0 +1,34 @@ + + +
+ + + + + +{{post.data.alt}}