added local draco hosting, thumbnails and new design

This commit is contained in:
Luca Junge 2022-11-13 22:04:21 +01:00
parent ad7d092728
commit 3d4e229916
14 changed files with 193 additions and 31 deletions

View file

@ -14,6 +14,11 @@ module.exports = function (eleventyConfig) {
zone: "Europe/Berlin"
}).setLocale("de").toLocaleString(DateTime.DATE_FULL)
})
eleventyConfig.addFilter("excerpt", (post) => {
const content = post.replace(/(<([^>]+)>)/gi, "");
return content.substr(0, content.lastIndexOf(" ", 200)) + "...";
});
return {
passthroughFileCopy: true,
dir: {