nsarrazin HF Staff commited on
Commit
6e16d44
·
unverified ·
1 Parent(s): 4065a4c

feat(tools): add thumbnail (#1470)

Browse files
src/routes/+layout.svelte CHANGED
@@ -158,7 +158,7 @@
158
 
159
  <!-- use those meta tags everywhere except on the share assistant page -->
160
  <!-- feel free to refacto if there's a better way -->
161
- {#if !$page.url.pathname.includes("/assistant/") && $page.route.id !== "/assistants" && !$page.url.pathname.includes("/models/")}
162
  <meta property="og:title" content={envPublic.PUBLIC_APP_NAME} />
163
  <meta property="og:type" content="website" />
164
  <meta property="og:url" content="{envPublic.PUBLIC_ORIGIN || $page.url.origin}{base}" />
 
158
 
159
  <!-- use those meta tags everywhere except on the share assistant page -->
160
  <!-- feel free to refacto if there's a better way -->
161
+ {#if !$page.url.pathname.includes("/assistant/") && $page.route.id !== "/assistants" && !$page.url.pathname.includes("/models/") && !$page.url.pathname.includes("/tools")}
162
  <meta property="og:title" content={envPublic.PUBLIC_APP_NAME} />
163
  <meta property="og:type" content="website" />
164
  <meta property="og:url" content="{envPublic.PUBLIC_ORIGIN || $page.url.origin}{base}" />
src/routes/tools/+layout.svelte CHANGED
@@ -1 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  <slot />
 
1
+ <script lang="ts">
2
+ import { env as envPublic } from "$env/dynamic/public";
3
+ import { isHuggingChat } from "$lib/utils/isHuggingChat";
4
+ import { base } from "$app/paths";
5
+ import { page } from "$app/stores";
6
+ </script>
7
+
8
+ <svelte:head>
9
+ {#if isHuggingChat}
10
+ <title>HuggingChat - Tools</title>
11
+ <meta property="og:title" content="HuggingChat - Tools" />
12
+ <meta property="og:type" content="link" />
13
+ <meta property="og:description" content="Browse HuggingChat tools made by the community." />
14
+ <meta
15
+ property="og:image"
16
+ content="{envPublic.PUBLIC_ORIGIN ||
17
+ $page.url.origin}{base}/{envPublic.PUBLIC_APP_ASSETS}/tools-thumbnail.png"
18
+ />
19
+ <meta property="og:url" content={$page.url.href} />
20
+ {/if}
21
+ </svelte:head>
22
+
23
  <slot />
src/routes/tools/+page.svelte CHANGED
@@ -1,7 +1,6 @@
1
  <script lang="ts">
2
  import type { PageData } from "./$types";
3
 
4
- import { env as envPublic } from "$env/dynamic/public";
5
  import { isHuggingChat } from "$lib/utils/isHuggingChat";
6
 
7
  import { goto } from "$app/navigation";
@@ -88,21 +87,6 @@
88
  };
89
  </script>
90
 
91
- <svelte:head>
92
- {#if isHuggingChat}
93
- <title>HuggingChat - Tools</title>
94
- <meta property="og:title" content="HuggingChat - Tools" />
95
- <meta property="og:type" content="link" />
96
- <meta property="og:description" content="Browse HuggingChat tools made by the community." />
97
- <meta
98
- property="og:image"
99
- content="{envPublic.PUBLIC_ORIGIN ||
100
- $page.url.origin}{base}/{envPublic.PUBLIC_APP_ASSETS}/tools-thumbnail.png"
101
- />
102
- <meta property="og:url" content={$page.url.href} />
103
- {/if}
104
- </svelte:head>
105
-
106
  <div class="scrollbar-custom mr-1 h-full overflow-y-auto py-12 max-sm:pt-8 md:py-24">
107
  <div class="pt-42 mx-auto flex flex-col px-5 xl:w-[60rem] 2xl:w-[64rem]">
108
  <div class="flex items-center">
 
1
  <script lang="ts">
2
  import type { PageData } from "./$types";
3
 
 
4
  import { isHuggingChat } from "$lib/utils/isHuggingChat";
5
 
6
  import { goto } from "$app/navigation";
 
87
  };
88
  </script>
89
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
90
  <div class="scrollbar-custom mr-1 h-full overflow-y-auto py-12 max-sm:pt-8 md:py-24">
91
  <div class="pt-42 mx-auto flex flex-col px-5 xl:w-[60rem] 2xl:w-[64rem]">
92
  <div class="flex items-center">
static/huggingchat/tools-thumbnail.png ADDED

Git LFS Details

  • SHA256: 73f0a81cff3b991dd82d7d3396f5e1c72b04b03fc4515f46e9646293ddc200ff
  • Pointer size: 131 Bytes
  • Size of remote file: 440 kB