aboutsummaryrefslogtreecommitdiffstats
path: root/src/posts/posts.11tydata.js
diff options
context:
space:
mode:
author2024-06-24 13:36:19 +0530
committer2024-06-24 13:38:02 +0530
commit828b9b153804a0f590522d1f0df0db4eb00e3ed0 (patch)
tree634c1c85356eb40920c85600b4f3785456859266 /src/posts/posts.11tydata.js
parentCI: Fixed CI (diff)
downloadsudomsg-828b9b153804a0f590522d1f0df0db4eb00e3ed0.tar
sudomsg-828b9b153804a0f590522d1f0df0db4eb00e3ed0.tar.gz
sudomsg-828b9b153804a0f590522d1f0df0db4eb00e3ed0.tar.bz2
sudomsg-828b9b153804a0f590522d1f0df0db4eb00e3ed0.tar.lz
sudomsg-828b9b153804a0f590522d1f0df0db4eb00e3ed0.tar.xz
sudomsg-828b9b153804a0f590522d1f0df0db4eb00e3ed0.tar.zst
sudomsg-828b9b153804a0f590522d1f0df0db4eb00e3ed0.zip
Rearranged the project layout
Diffstat (limited to 'src/posts/posts.11tydata.js')
-rw-r--r--src/posts/posts.11tydata.js13
1 files changed, 13 insertions, 0 deletions
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)}/`
+ }
+ }
+}