update contact form and hugo modules
This commit is contained in:
@@ -11,7 +11,7 @@ const toggleComment = ({ filepath, regex }) => {
|
||||
if (hasComment) {
|
||||
updatedContent = updatedContent.replace(
|
||||
regex,
|
||||
matchedContent.replace("# ", "")
|
||||
matchedContent.replace("# ", ""),
|
||||
);
|
||||
fs.writeFileSync(filepath, updatedContent, "utf8");
|
||||
} else {
|
||||
@@ -81,7 +81,7 @@ const setupProject = () => {
|
||||
{
|
||||
filepath: path.join(
|
||||
rootfolder,
|
||||
"exampleSite/config/_default/module.toml"
|
||||
"exampleSite/config/_default/module.toml",
|
||||
),
|
||||
regex: /\[\[imports\]\]\s*\r?\npath = "([^"]+)"/,
|
||||
},
|
||||
@@ -91,7 +91,7 @@ const setupProject = () => {
|
||||
const folderName = getFolderName(rootfolder);
|
||||
const newfolderName = createNewfolder(
|
||||
path.join(rootfolder, "themes"),
|
||||
folderName
|
||||
folderName,
|
||||
);
|
||||
|
||||
folderList.forEach((folder) => {
|
||||
|
@@ -13,7 +13,7 @@ const toggleComment = ({ filepath, regex }) => {
|
||||
if (hasBreakline) {
|
||||
updatedContent = updatedContent.replace(
|
||||
regex,
|
||||
matchedContent.replace(/# /gm, "")
|
||||
matchedContent.replace(/# /gm, ""),
|
||||
);
|
||||
fs.writeFileSync(filepath, updatedContent, "utf8");
|
||||
}
|
||||
@@ -108,7 +108,7 @@ const setupTheme = () => {
|
||||
} else {
|
||||
fs.renameSync(
|
||||
path.join(rootFolder, file.name),
|
||||
path.join(folder, file.name)
|
||||
path.join(folder, file.name),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user