nsarrazin HF staff commited on
Commit
0081568
1 Parent(s): 64b910e

Remove double meta tags on models page (#918)

Browse files

* Remove double meta tags

* Remove unknown property

src/routes/+layout.svelte CHANGED
@@ -140,7 +140,7 @@
140
 
141
  <!-- use those meta tags everywhere except on the share assistant page -->
142
  <!-- feel free to refacto if there's a better way -->
143
- {#if !$page.url.pathname.includes("/assistant/") && $page.route.id !== "/assistants"}
144
  <meta property="og:title" content={PUBLIC_APP_NAME} />
145
  <meta property="og:type" content="website" />
146
  <meta property="og:url" content="{PUBLIC_ORIGIN || $page.url.origin}{base}" />
 
140
 
141
  <!-- use those meta tags everywhere except on the share assistant page -->
142
  <!-- feel free to refacto if there's a better way -->
143
+ {#if !$page.url.pathname.includes("/assistant/") && $page.route.id !== "/assistants" && !$page.url.pathname.includes("/models/")}
144
  <meta property="og:title" content={PUBLIC_APP_NAME} />
145
  <meta property="og:type" content="website" />
146
  <meta property="og:url" content="{PUBLIC_ORIGIN || $page.url.origin}{base}" />
src/routes/models/[...model]/+page.svelte CHANGED
@@ -82,7 +82,7 @@
82
  <svelte:head>
83
  <meta property="og:title" content={modelId + " - " + PUBLIC_APP_NAME} />
84
  <meta property="og:type" content="link" />
85
- <meta property="og:description" content={`Use ${modelId} inside of ${PUBLIC_APP_NAME}`} />
86
  <meta
87
  property="og:image"
88
  content="{PUBLIC_ORIGIN || $page.url.origin}{base}/models/{modelId}/thumbnail.png"
 
82
  <svelte:head>
83
  <meta property="og:title" content={modelId + " - " + PUBLIC_APP_NAME} />
84
  <meta property="og:type" content="link" />
85
+ <meta property="og:description" content={`Use ${modelId} with ${PUBLIC_APP_NAME}`} />
86
  <meta
87
  property="og:image"
88
  content="{PUBLIC_ORIGIN || $page.url.origin}{base}/models/{modelId}/thumbnail.png"
src/routes/models/[...model]/thumbnail.png/ModelThumbnail.svelte CHANGED
@@ -9,7 +9,7 @@
9
  </script>
10
 
11
  <div class=" flex h-[648px] w-full flex-col items-center bg-white">
12
- <div class="flex flex-1 flex-col items-center justify-center gap-2">
13
  {#if logoUrl}
14
  <img class="h-48 w-48" src={logoUrl} alt="avatar" />
15
  {/if}
 
9
  </script>
10
 
11
  <div class=" flex h-[648px] w-full flex-col items-center bg-white">
12
+ <div class="flex flex-1 flex-col items-center justify-center">
13
  {#if logoUrl}
14
  <img class="h-48 w-48" src={logoUrl} alt="avatar" />
15
  {/if}