Spaces:
Running
Running
add svelte:head to root layout
Browse files- src/routes/+layout.svelte +22 -0
- src/routes/sitemap.xml/+server.js +21 -0
src/routes/+layout.svelte
CHANGED
|
@@ -32,6 +32,28 @@
|
|
| 32 |
})
|
| 33 |
</script>
|
| 34 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
<div class="flex items-start">
|
| 36 |
<!-- <SpaceMiniHeader /> -->
|
| 37 |
<Sidebar />
|
|
|
|
| 32 |
})
|
| 33 |
</script>
|
| 34 |
|
| 35 |
+
<svelte:head>
|
| 36 |
+
<title>LoRA Studio</title>
|
| 37 |
+
<meta name="description" content="Create, share and learn with this and many more LoRAs" />
|
| 38 |
+
<meta property="og:title" content="LoRA Studio" />
|
| 39 |
+
<meta
|
| 40 |
+
property="og:description"
|
| 41 |
+
content="Create, share and learn with this and many more LoRAs"
|
| 42 |
+
/>
|
| 43 |
+
<meta property="og:image" content="https://enzostvs-lora-studio.hf.space/metadata.png" />
|
| 44 |
+
<meta property="og:url" content="https://enzostvs-lora-studio.hf.space/" />
|
| 45 |
+
<meta property="og:type" content="website" />
|
| 46 |
+
<meta name="twitter:card" content="summary_large_image" />
|
| 47 |
+
<meta name="twitter:site" content="@huggingface" />
|
| 48 |
+
<meta name="twitter:creator" content="@huggingface" />
|
| 49 |
+
<meta name="twitter:title" content="LoRA Studio" />
|
| 50 |
+
<meta
|
| 51 |
+
name="twitter:description"
|
| 52 |
+
content="Create, share and learn with this and many more LoRAs"
|
| 53 |
+
/>
|
| 54 |
+
<meta name="twitter:image" content="https://enzostvs-lora-studio.hf.space/metadata.png" />
|
| 55 |
+
</svelte:head>
|
| 56 |
+
|
| 57 |
<div class="flex items-start">
|
| 58 |
<!-- <SpaceMiniHeader /> -->
|
| 59 |
<Sidebar />
|
src/routes/sitemap.xml/+server.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
export async function GET() {
|
| 2 |
+
return new Response(
|
| 3 |
+
`
|
| 4 |
+
<?xml version="1.0" encoding="UTF-8" ?>
|
| 5 |
+
<urlset
|
| 6 |
+
xmlns="https://www.sitemaps.org/schemas/sitemap/0.9"
|
| 7 |
+
xmlns:xhtml="https://www.w3.org/1999/xhtml"
|
| 8 |
+
xmlns:mobile="https://www.google.com/schemas/sitemap-mobile/1.0"
|
| 9 |
+
xmlns:news="https://www.google.com/schemas/sitemap-news/0.9"
|
| 10 |
+
xmlns:image="https://www.google.com/schemas/sitemap-image/1.1"
|
| 11 |
+
xmlns:video="https://www.google.com/schemas/sitemap-video/1.1"
|
| 12 |
+
>
|
| 13 |
+
<!-- <url> elements go here -->
|
| 14 |
+
</urlset>`.trim(),
|
| 15 |
+
{
|
| 16 |
+
headers: {
|
| 17 |
+
'Content-Type': 'application/xml'
|
| 18 |
+
}
|
| 19 |
+
}
|
| 20 |
+
);
|
| 21 |
+
}
|