aboutsummaryrefslogtreecommitdiffstats
path: root/src/posts/posts.11tydata.js
diff options
context:
space:
mode:
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)}/`
+ }
+ }
+}