Provides template filters for content processing including excerpt
generation, image extraction, HTML manipulation, date formatting, and data filtering.
All filters handle both Markdown and HTML input gracefully.

Properties

Name Type Description
excerpt filter Extract content summary with customizable options
extractFirstImage filter Get first image URL from content
firstParagraph filter Extract first paragraph
excerptWords filter Limit excerpt to N words
htmlDateString filter Format date for HTML
dateToXmlschema filter ISO 8601 date format
removeTags filter Remove specific HTML tags
filterTags filter Keep only specific tags
removeEmptyTags filter Clean empty elements
dotDate filter Format date as YY.MM.DD

Examples

// In template
{{ post.content | excerpt(maxWords: 50) }}
{{ post.content | extractFirstImage }}
{{ post.date | dateToXmlschema }}

Source: /Users/francisfontaine/Documents/GitHub/Standard/src/eleventy/filter.js