From 5aeaf2f352e7da0a0d55a7ad2cd7dbd3869b875a Mon Sep 17 00:00:00 2001 From: Marc Pervaz Boocha Date: Sat, 8 Jan 2022 17:27:42 +0530 Subject: add service worker --- src/post/post.11tydata.js | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/post/post.11tydata.js (limited to 'src/post/post.11tydata.js') diff --git a/src/post/post.11tydata.js b/src/post/post.11tydata.js new file mode 100644 index 0000000..68f56d2 --- /dev/null +++ b/src/post/post.11tydata.js @@ -0,0 +1,8 @@ +const slugify = require("@sindresorhus/slugify") + +module.exports = () => ({ + layout: "post.njk", + eleventyComputed: { + permalink: data => `/posts/${slugify(data.title)}/` + } +}) \ No newline at end of file -- cgit v1.2.3-70-g09d2