diff --git a/scripts/projectSetup.js b/scripts/projectSetup.js index 4585fc9..16de15f 100644 --- a/scripts/projectSetup.js +++ b/scripts/projectSetup.js @@ -2,10 +2,7 @@ const fs = require("fs"); const path = require("path"); const getFolderName = (rootfolder) => { - const configPath = path.join( - rootfolder, - "exampleSite/config/_default/hugo.toml" - ); + const configPath = path.join(rootfolder, "exampleSite/hugo.toml"); const getConfig = fs.readFileSync(configPath, "utf8"); const match = getConfig.match(/theme\s*=\s*\[?"([^"\]]+)"\]?/); let selectedTheme = null; diff --git a/scripts/themeSetup.js b/scripts/themeSetup.js index ad32df9..42b8419 100644 --- a/scripts/themeSetup.js +++ b/scripts/themeSetup.js @@ -14,10 +14,7 @@ const deleteFolder = (folderPath) => { }; const getFolderName = (rootfolder) => { - const configPath = path.join( - rootfolder, - "exampleSite/config/_default/hugo.toml" - ); + const configPath = path.join(rootfolder, "exampleSite/hugo.toml"); const getConfig = fs.readFileSync(configPath, "utf8"); const match = getConfig.match(/theme\s*=\s*\[?"([^"\]]+)"\]?/); let selectedTheme = null;