Stuff for drafts, handling missing slugs and dates

This commit is contained in:
Will Boyd
2025-02-09 12:21:13 -05:00
parent a645b2bfdc
commit 42d0688654
7 changed files with 53 additions and 28 deletions
+6 -1
View File
@@ -156,5 +156,10 @@ function normalize(value, type, onError) {
}
export function buildSamplePostPath(overrideConfig) {
return shared.buildPostPath('', luxon.DateTime.now(), 'my-post', overrideConfig);
const samplePost = {
date: luxon.DateTime.now(),
slug: 'my-post'
};
return shared.buildPostPath(samplePost, overrideConfig);
}