Skip to content

Commit

Permalink
Update change slugify filter to support non-english tag
Browse files Browse the repository at this point in the history
  • Loading branch information
jkyochen committed Oct 28, 2023
1 parent f1de82a commit 4354614
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions eleventy.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ module.exports = function(eleventyConfig) {
console.log(value);
});

eleventyConfig.addFilter("slugify", require("limax"));

// Customize Markdown library settings:
eleventyConfig.amendLibrary("md", mdLib => {
mdLib.use(markdownItAnchor, {
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,8 @@
"@11ty/eleventy-plugin-syntaxhighlight": "^5.0.0",
"luxon": "^3.3.0",
"markdown-it-anchor": "^8.6.7"
},
"dependencies": {
"limax": "^4.1.0"
}
}

0 comments on commit 4354614

Please sign in to comment.