Skip to content

Commit

Permalink
Switches from slug-rfc to slugify to fix #2
Browse files Browse the repository at this point in the history
  • Loading branch information
zachleat committed Dec 20, 2017
1 parent b24b51f commit 1a1ffdd
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ Works with:

## Installation

Available [on npm](https://www.npmjs.com/package/eleventy-cli).

```
npm install -g eleventy-cli
```
Expand Down
5 changes: 3 additions & 2 deletions config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const slug = require("slug-rfc");
const slugify = require("slugify");

module.exports = {
templateFormats: [
Expand Down Expand Up @@ -31,7 +31,8 @@ module.exports = {
handlebarsHelpers: {},
nunjucksFilters: {
slug: function(str) {
return slug(str, {
return slugify(str, {
replacement: "-",
lower: true
});
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,6 @@
"pify": "^3.0.0",
"pretty": "^2.0.0",
"pug": "^2.0.0-rc.4",
"slug-rfc": "^0.1.0"
"slugify": "^1.2.7"
}
}
1 change: 0 additions & 1 deletion src/Engines/Nunjucks.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
const slug = require("slug-rfc");
const NunjucksLib = require("nunjucks");
const TemplateEngine = require("./TemplateEngine");
const TemplateConfig = require("../TemplateConfig");
Expand Down

0 comments on commit 1a1ffdd

Please sign in to comment.