rename config.toml to hugo.toml
This commit is contained in:
@@ -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*\[?"([^"\]]+)"\]?/);
|
||||
|
Reference in New Issue
Block a user