examples and tutorials

This commit is contained in:
Luca Junge 2023-12-24 12:17:13 +01:00
parent 06914e6c02
commit 96bf869340
22 changed files with 159 additions and 122 deletions

View file

@ -23,7 +23,7 @@ module.exports = function (eleventyConfig) {
eleventyConfig.addFilter("createExcerpt", (post) => {
// This removes "<" and ">" from the output
const content = post.replace(/(<([^>]+)>)/gi, "")
return content.substr(0, content.lastIndexOf(" ", 180)) + "..."
return content.substr(0, content.lastIndexOf(" ", 450)) + "..."
})
eleventyConfig.addFilter("stringify", (object) => {