Test post

This commit is contained in:
Z. Charles Dziura 2025-04-16 17:25:17 -04:00
parent a56b614037
commit 620385f005
2 changed files with 17 additions and 0 deletions

View file

@ -0,0 +1 @@
just setting up my blog

View 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}`;
},
};