From 900a707fdcb04e5739126ec2509fdc39fee7491c Mon Sep 17 00:00:00 2001 From: Marc Pervaz Boocha Date: Sun, 7 Apr 2024 19:43:04 +0530 Subject: Rewrote Site in 11ty Still need to Update the content --- posts/posts.11tydata.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 posts/posts.11tydata.js (limited to 'posts') diff --git a/posts/posts.11tydata.js b/posts/posts.11tydata.js new file mode 100644 index 0000000..e22d809 --- /dev/null +++ b/posts/posts.11tydata.js @@ -0,0 +1,10 @@ +import slugify from '@sindresorhus/slugify'; + +export default _ => { + return { + layout: "post.html", + eleventyComputed: { + permalink: data => `posts/${slugify(data.title)}/` + } + } +} -- cgit v1.2.3-70-g09d2