From b96065c6fc03dda48376832dfc26c972beaa97aa Mon Sep 17 00:00:00 2001 From: somrat sorkar Date: Sat, 8 Jul 2023 10:16:38 +0600 Subject: [PATCH] update setup scripts --- scripts/projectSetup.js | 5 +---- scripts/themeSetup.js | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) 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;