enzostvs HF staff commited on
Commit
06c84cb
Β·
1 Parent(s): 6c4fbf4

custom mets

Browse files
src/routes/models/[userId]/[slug]/+layout.svelte DELETED
@@ -1,27 +0,0 @@
1
- <script lang="ts">
2
- import { modelStore } from "$lib/stores/use-model";
3
- import { onMount } from "svelte";
4
- export let data;
5
-
6
-
7
- onMount(() => {
8
- modelStore.set({
9
- model: data ? data.model : null,
10
- open: true
11
- });
12
- });
13
- </script>
14
-
15
- <svelte:head>
16
- <meta property="og:title" content="{data?.model?.id.split("/")[1]} by {data?.model?.id.split("/")[0]} on LoRA Studio" />
17
- {#if data?.model?.metadata}
18
- <meta property="og:image" content="/api/images/{data?.model?.metadata}" />
19
- <meta name="twitter:image" content="/api/images/{data?.model?.metadata}" />
20
- {/if}
21
- <meta property="og:url" content="{window.location.href}" />
22
- <meta property="og:type" content="website" />
23
- <meta name="twitter:card" content="summary_large_image" />
24
- <meta name="twitter:title" content="{data?.model?.id.split("/")[1]} by {data?.model?.id.split("/")[0]} on LoRA Studio" />
25
- </svelte:head>
26
-
27
- <slot />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
src/routes/models/[userId]/[slug]/{+layout.server.ts β†’ +page.server.ts} RENAMED
File without changes
src/routes/models/[userId]/[slug]/+page.svelte CHANGED
@@ -1,3 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  <div>
2
- <slot />
3
  </div>
 
1
+ <script lang="ts">
2
+ import { modelStore } from "$lib/stores/use-model";
3
+ import { onMount } from "svelte";
4
+ export let data;
5
+
6
+
7
+ onMount(() => {
8
+ modelStore.set({
9
+ model: data ? data.model : null,
10
+ open: true
11
+ });
12
+ });
13
+ </script>
14
+
15
+ <svelte:head>
16
+ <meta property="og:title" content="{data?.model?.id.split("/")[1]} by {data?.model?.id.split("/")[0]} on LoRA Studio" />
17
+ {#if data?.model?.metadata}
18
+ <meta property="og:image" content="/api/images/{data?.model?.metadata}" />
19
+ <meta name="twitter:image" content="/api/images/{data?.model?.metadata}" />
20
+ {/if}
21
+ <meta property="og:url" content="{window.location.href}" />
22
+ <meta property="og:type" content="website" />
23
+ <meta name="twitter:card" content="summary_large_image" />
24
+ <meta name="twitter:title" content="{data?.model?.id.split("/")[1]} by {data?.model?.id.split("/")[0]} on LoRA Studio" />
25
+ </svelte:head>
26
+
27
  <div>
28
+
29
  </div>