examples and tutorials
This commit is contained in:
parent
06914e6c02
commit
96bf869340
22 changed files with 159 additions and 122 deletions
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue