Rename index to app, update deps, tweak config

This commit is contained in:
Will Boyd
2025-03-07 10:52:21 -05:00
parent 6562b60b5c
commit 89b12cdd96
5 changed files with 20 additions and 23 deletions
+4 -4
View File
@@ -56,7 +56,7 @@ export function load() {
{
name: 'date-folders',
type: 'choice',
description: 'Organize posts into folders by date',
description: 'Organize posts into date folders',
default: 'none',
choices: [
{
@@ -113,13 +113,13 @@ export function load() {
default: 'title,date,categories,tags,coverImage,draft'
},
{
name: 'image-file-request-delay',
name: 'request-delay',
type: 'integer',
description: 'Delay between image file requests',
default: 500
},
{
name: 'markdown-file-write-delay',
name: 'write-delay',
type: 'integer',
description: 'Delay between writing markdown files',
default: 10
@@ -131,7 +131,7 @@ export function load() {
default: 'utc'
},
{
name: 'include-time-with-date',
name: 'include-time',
type: 'boolean',
description: 'Include time with frontmatter date',
default: false
+3 -3
View File
@@ -59,7 +59,7 @@ async function writeMarkdownFilesPromise(posts) {
destinationPath,
delay
};
delay += shared.config.markdownFileWriteDelay;
delay += shared.config.writeDelay;
return [payload];
}
});
@@ -90,7 +90,7 @@ async function loadMarkdownFilePromise(post) {
if (shared.config.dateFormat) {
outputValue = value.toFormat(shared.config.dateFormat);
} else {
outputValue = shared.config.includeTimeWithDate ? value.toISO() : value.toISODate();
outputValue = shared.config.includeTime ? value.toISO() : value.toISODate();
}
if (shared.config.quoteDate) {
@@ -138,7 +138,7 @@ async function writeImageFilesPromise(posts) {
destinationPath,
delay
};
delay += shared.config.imageFileRequestDelay;
delay += shared.config.requestDelay;
return [payload];
}
});