Skip to content

Commit

Permalink
Merge pull request #5 from winstonwumbo/main
Browse files Browse the repository at this point in the history
Adjusted site:theme action to accept CLI input
  • Loading branch information
btopro authored Jan 23, 2025
2 parents 3a86992 + e37d0f8 commit 503d6a9
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/lib/programs/site.js
Original file line number Diff line number Diff line change
Expand Up @@ -731,12 +731,12 @@ export async function siteCommandDetected(commandRun) {
initialValue: val,
options: list,
});
let themes = await HAXCMS.getThemes();
if (themes && commandRun.options.theme && themes[commandRun.options.theme]) {
activeHaxsite.manifest.metadata.theme = themes[commandRun.options.theme];
activeHaxsite.manifest.save(false);
recipe.log(siteLoggingName, commandString(commandRun));
}
}
let themes = await HAXCMS.getThemes();
if (themes && commandRun.options.theme && themes[commandRun.options.theme]) {
activeHaxsite.manifest.metadata.theme = themes[commandRun.options.theme];
activeHaxsite.manifest.save(false);
recipe.log(siteLoggingName, commandString(commandRun));
}
}
catch(e) {
Expand Down Expand Up @@ -1420,4 +1420,4 @@ async function nodeToHaxElement(node, eventName = "insert-element") {
element.eventName = eventName;
}
return element;
}
}

0 comments on commit 503d6a9

Please sign in to comment.