enzostvs HF staff commited on
Commit
52be592
·
1 Parent(s): 2085de6

update sitemap

Browse files
src/routes/models/+layout.svelte CHANGED
@@ -78,6 +78,7 @@
78
  data.total_items = response.total_items;
79
  }
80
  }
 
81
  </script>
82
 
83
  <svelte:head>
 
78
  data.total_items = response.total_items;
79
  }
80
  }
81
+
82
  </script>
83
 
84
  <svelte:head>
src/routes/sitemap.xml/+server.js CHANGED
@@ -25,7 +25,7 @@ export async function GET() {
25
  >
26
  <url>
27
  <loc>https://lorastudio.co/</loc>
28
- <lastModified>${new Date().toISOString()}</lastModified>
29
  </url>
30
  ${models
31
  .map(
@@ -33,7 +33,7 @@ export async function GET() {
33
  `
34
  <url>
35
  <loc>https://lorastudio.co/models/${model.id}</loc>
36
- <lastModified>${new Date(model.createdAt).toISOString()}</lastModified>
37
  </url>
38
  `
39
  )
 
25
  >
26
  <url>
27
  <loc>https://lorastudio.co/</loc>
28
+ <lastmod>${new Date().toISOString()}</lastmod>
29
  </url>
30
  ${models
31
  .map(
 
33
  `
34
  <url>
35
  <loc>https://lorastudio.co/models/${model.id}</loc>
36
+ <lastmod>${new Date(model.createdAt).toISOString()}</lastmod>
37
  </url>
38
  `
39
  )