Skip to content

Commit

Permalink
Remove double meta tags on models page (#918)
Browse files Browse the repository at this point in the history
* Remove double meta tags

* Remove unknown property
  • Loading branch information
nsarrazin committed Mar 8, 2024
1 parent 64b910e commit 0081568
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/routes/+layout.svelte
Expand Up @@ -140,7 +140,7 @@

<!-- use those meta tags everywhere except on the share assistant page -->
<!-- feel free to refacto if there's a better way -->
{#if !$page.url.pathname.includes("/assistant/") && $page.route.id !== "/assistants"}
{#if !$page.url.pathname.includes("/assistant/") && $page.route.id !== "/assistants" && !$page.url.pathname.includes("/models/")}
<meta property="og:title" content={PUBLIC_APP_NAME} />
<meta property="og:type" content="website" />
<meta property="og:url" content="{PUBLIC_ORIGIN || $page.url.origin}{base}" />
Expand Down
2 changes: 1 addition & 1 deletion src/routes/models/[...model]/+page.svelte
Expand Up @@ -82,7 +82,7 @@
<svelte:head>
<meta property="og:title" content={modelId + " - " + PUBLIC_APP_NAME} />
<meta property="og:type" content="link" />
<meta property="og:description" content={`Use ${modelId} inside of ${PUBLIC_APP_NAME}`} />
<meta property="og:description" content={`Use ${modelId} with ${PUBLIC_APP_NAME}`} />
<meta
property="og:image"
content="{PUBLIC_ORIGIN || $page.url.origin}{base}/models/{modelId}/thumbnail.png"
Expand Down
Expand Up @@ -9,7 +9,7 @@
</script>

<div class=" flex h-[648px] w-full flex-col items-center bg-white">
<div class="flex flex-1 flex-col items-center justify-center gap-2">
<div class="flex flex-1 flex-col items-center justify-center">
{#if logoUrl}
<img class="h-48 w-48" src={logoUrl} alt="avatar" />
{/if}
Expand Down

0 comments on commit 0081568

Please sign in to comment.