update contact form and hugo modules

This commit is contained in:
somrat sorkar
2023-08-06 08:19:16 +06:00
parent 3e2ac9f852
commit 758bc53106
12 changed files with 259 additions and 244 deletions

View File

@@ -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) => {

View File

@@ -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),
);
}
}