diff options
Diffstat (limited to 'src/posts/posts.11tydata.js')
| -rw-r--r-- | src/posts/posts.11tydata.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/posts/posts.11tydata.js b/src/posts/posts.11tydata.js index c9924d9..d7e86d1 100644 --- a/src/posts/posts.11tydata.js +++ b/src/posts/posts.11tydata.js @@ -1,5 +1,3 @@ -import slugify from '@sindresorhus/slugify'; - export default function () { return { layout: "post", @@ -8,7 +6,7 @@ export default function () { ], eleventyComputed: { permalink(data) { - return data.title ? `posts/${slugify(data.title)}/` : `posts/${data.page.fileSlug}/` + return data.title ? `posts/${this.slugify(data.title)}/` : `posts/${data.page.fileSlug}/` }, } } |
