Test post
This commit is contained in:
parent
a56b614037
commit
620385f005
2 changed files with 17 additions and 0 deletions
1
src/posts/2025/04/a-test-post.md
Normal file
1
src/posts/2025/04/a-test-post.md
Normal file
|
@ -0,0 +1 @@
|
|||
just setting up my blog
|
16
src/posts/posts.11tydata.js
Normal file
16
src/posts/posts.11tydata.js
Normal file
|
@ -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}`;
|
||||
},
|
||||
};
|
Loading…
Add table
Reference in a new issue