From 828b9b153804a0f590522d1f0df0db4eb00e3ed0 Mon Sep 17 00:00:00 2001 From: Marc Pervaz Boocha Date: Mon, 24 Jun 2024 13:36:19 +0530 Subject: Rearranged the project layout --- src/posts/posts.11tydata.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/posts/posts.11tydata.js (limited to 'src/posts/posts.11tydata.js') diff --git a/src/posts/posts.11tydata.js b/src/posts/posts.11tydata.js new file mode 100644 index 0000000..f03d0cf --- /dev/null +++ b/src/posts/posts.11tydata.js @@ -0,0 +1,13 @@ +import slugify from '@sindresorhus/slugify'; + +export default _ => { + return { + layout: "post", + tags: [ + "post" + ], + eleventyComputed: { + permalink: data => `posts/${slugify(data.title)}/` + } + } +} -- cgit v1.2.3-70-g09d2