Added linting, minor code tweaks, removed getCommand()

This commit is contained in:
Will Boyd
2020-01-19 11:42:17 -05:00
parent ef7c63627e
commit 4c49e93da4
9 changed files with 781 additions and 50 deletions
+2 -2
View File
@@ -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'));