diff options
author | Marc Pervaz Boocha <mboocha@sudomsg.xyz> | 2022-01-10 12:05:47 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-10 12:05:47 +0530 |
commit | 229f45e73dc60df6522920d4e9bb1fc9e2cb728b (patch) | |
tree | 8245b024afd2dded659c9ceeed74f0c1c570346f /src/post | |
parent | Merge branch 'main' of github.com:marcthe12/website (diff) | |
parent | Merge branch 'main' into devel (diff) | |
download | sudomsg-229f45e73dc60df6522920d4e9bb1fc9e2cb728b.tar sudomsg-229f45e73dc60df6522920d4e9bb1fc9e2cb728b.tar.gz sudomsg-229f45e73dc60df6522920d4e9bb1fc9e2cb728b.tar.bz2 sudomsg-229f45e73dc60df6522920d4e9bb1fc9e2cb728b.tar.lz sudomsg-229f45e73dc60df6522920d4e9bb1fc9e2cb728b.tar.xz sudomsg-229f45e73dc60df6522920d4e9bb1fc9e2cb728b.tar.zst sudomsg-229f45e73dc60df6522920d4e9bb1fc9e2cb728b.zip |
Merge pull request #1 from marcthe12/devel
Devel
Diffstat (limited to 'src/post')
-rw-r--r-- | src/post/hello_world.md | 8 | ||||
-rw-r--r-- | src/post/post.11tydata.js | 8 | ||||
-rw-r--r-- | src/post/post.json | 3 |
3 files changed, 8 insertions, 11 deletions
diff --git a/src/post/hello_world.md b/src/post/hello_world.md deleted file mode 100644 index 923ad0b..0000000 --- a/src/post/hello_world.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -title: Hello World -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 |