mirror of
https://github.com/10h30/wordpress-export-to-markdown.git
synced 2026-07-16 13:13:39 +09:00
Rename index to app, update deps, tweak config
This commit is contained in:
+4
-4
@@ -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
@@ -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];
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user