diff options
author | Marc Pervaz Boocha <mboocha@sudomsg.xyz> | 2022-01-08 17:27:42 +0530 |
---|---|---|
committer | Marc Pervaz Boocha <mboocha@sudomsg.xyz> | 2022-01-08 17:27:42 +0530 |
commit | 5aeaf2f352e7da0a0d55a7ad2cd7dbd3869b875a (patch) | |
tree | bbca1d1fa46fb810d9974484572de5a9bfac54b8 /src/post | |
parent | make it ready to deploy (diff) | |
download | sudomsg-5aeaf2f352e7da0a0d55a7ad2cd7dbd3869b875a.tar sudomsg-5aeaf2f352e7da0a0d55a7ad2cd7dbd3869b875a.tar.gz sudomsg-5aeaf2f352e7da0a0d55a7ad2cd7dbd3869b875a.tar.bz2 sudomsg-5aeaf2f352e7da0a0d55a7ad2cd7dbd3869b875a.tar.lz sudomsg-5aeaf2f352e7da0a0d55a7ad2cd7dbd3869b875a.tar.xz sudomsg-5aeaf2f352e7da0a0d55a7ad2cd7dbd3869b875a.tar.zst sudomsg-5aeaf2f352e7da0a0d55a7ad2cd7dbd3869b875a.zip |
add service worker
Diffstat (limited to 'src/post')
-rw-r--r-- | src/post/hello_world.md | 2 | ||||
-rw-r--r-- | src/post/post.11tydata.js | 8 | ||||
-rw-r--r-- | src/post/post.json | 3 |
3 files changed, 9 insertions, 4 deletions
diff --git a/src/post/hello_world.md b/src/post/hello_world.md index 923ad0b..741c490 100644 --- a/src/post/hello_world.md +++ b/src/post/hello_world.md @@ -4,5 +4,5 @@ description: The First Post to the World date: 2021-09-12 --- This is the first post on my blog. - + Eleventy is super fresh init. 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 diff --git a/src/post/post.json b/src/post/post.json deleted file mode 100644 index 60ff6df..0000000 --- a/src/post/post.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "layout": "post.njk" -}
\ No newline at end of file |