Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
eleventy-xml-plugin
Advanced tools
Useful set of Liquid filters for XML files composition in Eleventy projects
👩🔬 Useful set of Liquid filters for XML files composition in Eleventy projects.
This plugins automatically adds a set of filters that Jekyll adds to the already built-in ones in Liquid template language to help you compose XML files like RSS feeds or sitemaps.
# npm
npm i eleventy-xml-plugin --save
# yarn
yarn add eleventy-xml-plugin
Include it as a plugin in your Eleventy project.
// .eleventy.js
const xmlFiltersPlugin = require('eleventy-xml-plugin')
module.exports = function(eleventyConfig) {
eleventyConfig.addPlugin(xmlFiltersPlugin)
}
date_to_rfc822
Used in RSS feed as a valid publish date format.
<pubDate>{{ post.date | 'date_to_rfc822' }}</pubDate>
date_to_xmlschema
Used in sitemaps as valid last modified date format.
<lastmod>{{ page.date | 'date_to_xmlschema' }}</lastmod>
xml_escape
Used to safely escape HTML entities in XML files.
<title>{{ post.data.title | 'xml_escape' }}</title>
This filter uses the html-entities package under-the-hood.
To contribute Node.js and yarn are required.
Before commit make sure to follow conventional commits specification and check all tests pass by running yarn test
.
FAQs
Useful set of Liquid filters for XML files composition in Eleventy projects
We found that eleventy-xml-plugin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.