Spaces:
Sleeping
Sleeping
add tag only when creating
Browse files101 unmodified lines102103104105106107108109110105106107108109110111112113101 unmodified lines }); }
// add add the end of the body (before all the <script></script>) a paragraph with the mention this has been generated by DeepSite // and add a link to the website (https://enzostvs-deepsite.hf.space) + the logo "/logo.svg" const newHtml = html.replace( /<\/body>/, `<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>` ); if (!path) { const newHtml = html.replace( /<\/body>/, `<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>` ); }
const file = new Blob([newHtml], { type: "text/html" }); file.name = "index.html"; // Add name property to the Blobserver.js+6-6