diff --git a/src/posts/2025/04/a-test-post.md b/src/posts/2025/04/a-test-post.md new file mode 100644 index 0000000..e8e6522 --- /dev/null +++ b/src/posts/2025/04/a-test-post.md @@ -0,0 +1 @@ +just setting up my blog diff --git a/src/posts/posts.11tydata.js b/src/posts/posts.11tydata.js new file mode 100644 index 0000000..b6acc66 --- /dev/null +++ b/src/posts/posts.11tydata.js @@ -0,0 +1,16 @@ +import { DateTime } from 'luxon'; + +export default { + date: 'git Created', + type: 'post', + permalink: function ({ page }) { + // console.log(arguments); + const { date, fileSlug, outputFileExtension } = page; + const today = DateTime.fromJSDate(date).toUTC(); + + return `/posts/${today.year}/${String(today.month).padStart(2, '0')}/${String(today.day).padStart( + 2, + '0' + )}/${fileSlug}.${outputFileExtension}`; + }, +};