mirror of
https://github.com/10h30/wordpress-export-to-markdown.git
synced 2026-07-11 18:56:14 +09:00
Added linting, minor code tweaks, removed getCommand()
This commit is contained in:
+2
-2
@@ -109,10 +109,10 @@ async function loadImageFilePromise(imageUrl) {
|
||||
}
|
||||
|
||||
function getPostPath(post, config) {
|
||||
let dt = luxon.DateTime.fromISO(post.frontmatter.date);
|
||||
const dt = luxon.DateTime.fromISO(post.frontmatter.date);
|
||||
|
||||
// start with base output dir
|
||||
let pathSegments = [config.output];
|
||||
const pathSegments = [config.output];
|
||||
|
||||
if (config.yearFolders) {
|
||||
pathSegments.push(dt.toFormat('yyyy'));
|
||||
|
||||
Reference in New Issue
Block a user