We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1e31389 commit 7115c06Copy full SHA for 7115c06
generate-sitemap.js
@@ -28,7 +28,10 @@ function generateSitemap(files) {
28
29
files.forEach(function(file) {
30
const url = 'https://clashv2rayu.github.io/' + file.replace('./', ''); // Update URL as needed
31
- xml += `\t<url>\n\t\t<loc>${url}</loc>\n\t</url>\n`;
+ const lastmod = new Date().toISOString().split('T')[0]; // Current date as lastmod
32
+
33
34
+ xml += `\t<url>\n\t\t<loc>${url}</loc>\n\t\t<lastmod>${lastmod}</lastmod>\n\t\t</url>\n`;
35
});
36
37
xml += '</urlset>';
0 commit comments