File tree Expand file tree Collapse file tree 4 files changed +23
-17
lines changed Expand file tree Collapse file tree 4 files changed +23
-17
lines changed Original file line number Diff line number Diff line change 158
158
159
159
<!-- use those meta tags everywhere except on the share assistant page -->
160
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/" )}
161
+ {#if ! $page .url .pathname .includes (" /assistant/" ) && $page .route .id !== " /assistants" && ! $page .url .pathname .includes (" /models/" ) && ! $page . url . pathname . includes ( " /tools " ) }
162
162
<meta property ="og:title" content ={envPublic .PUBLIC_APP_NAME } />
163
163
<meta property =" og:type" content =" website" />
164
164
<meta property ="og:url" content =" {envPublic .PUBLIC_ORIGIN || $page .url .origin }{base }" />
Original file line number Diff line number Diff line change
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
+
1
23
<slot />
Original file line number Diff line number Diff line change 1
1
<script lang =" ts" >
2
2
import type { PageData } from " ./$types" ;
3
3
4
- import { env as envPublic } from " $env/dynamic/public" ;
5
4
import { isHuggingChat } from " $lib/utils/isHuggingChat" ;
6
5
7
6
import { goto } from " $app/navigation" ;
88
87
};
89
88
</script >
90
89
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
90
<div class =" scrollbar-custom mr-1 h-full overflow-y-auto py-12 max-sm:pt-8 md:py-24" >
107
91
<div class =" pt-42 mx-auto flex flex-col px-5 xl:w-[60rem] 2xl:w-[64rem]" >
108
92
<div class =" flex items-center" >
You can’t perform that action at this time.
0 commit comments