add tag only when creating
Browse files
server.js
CHANGED
@@ -102,12 +102,12 @@ app.post("/api/deploy", checkUser, async (req, res) => {
|
|
102 |
});
|
103 |
}
|
104 |
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
|
112 |
const file = new Blob([newHtml], { type: "text/html" });
|
113 |
file.name = "index.html"; // Add name property to the Blob
|
|
|
102 |
});
|
103 |
}
|
104 |
|
105 |
+
if (!path) {
|
106 |
+
const newHtml = html.replace(
|
107 |
+
/<\/body>/,
|
108 |
+
`<p style="text-align: center; font-size: 12px; color: #888; margin-top: 16px;">This website has been generated by <a href="https://enzostvs-deepsite.hf.space" target="_blank">DeepSite</a> <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;"></p></body>`
|
109 |
+
);
|
110 |
+
}
|
111 |
|
112 |
const file = new Blob([newHtml], { type: "text/html" });
|
113 |
file.name = "index.html"; // Add name property to the Blob
|