Skip to content

Commit

Permalink
site only shows theme
Browse files Browse the repository at this point in the history
  • Loading branch information
btopro committed Dec 3, 2024
1 parent e2df361 commit 80344e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ async function main() {
},
theme: async({ results }) => {
let themes = await siteThemeList();
if (!commandRun.options.theme) {
if (results.type === "site" && !commandRun.options.theme) {
// support having no theme but autoselecting
if (!commandRun.options.auto && !commandRun.options.skip) {
commandRun.options.theme = themes[0];
Expand Down

0 comments on commit 80344e3

Please sign in to comment.