rename config.toml to hugo.toml

This commit is contained in:
somrat sorkar
2023-07-05 16:25:58 +06:00
parent 39d31f2ade
commit caee77c940
8 changed files with 37 additions and 21 deletions

View File

@@ -4,7 +4,7 @@ const path = require("path");
const getFolderName = (rootfolder) => {
const configPath = path.join(
rootfolder,
"exampleSite/config/_default/config.toml"
"exampleSite/config/_default/hugo.toml"
);
const getConfig = fs.readFileSync(configPath, "utf8");
const match = getConfig.match(/theme\s*=\s*\[?"([^"\]]+)"\]?/);