Commit
•
cbe1258
1
Parent(s):
9b20b88
🔍 Improve social links (#99)
Browse files- src/app.html +0 -5
- src/routes/+layout.svelte +9 -0
src/app.html
CHANGED
@@ -5,11 +5,6 @@
|
|
5 |
<link rel="icon" href="%sveltekit.assets%/favicon.png" />
|
6 |
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
|
7 |
<title>HuggingChat</title>
|
8 |
-
<meta name="description" content="The first open source alternative to ChatGPT. 💪" />
|
9 |
-
<meta property="og:title" content="HuggingChat" />
|
10 |
-
<meta property="og:type" content="website" />
|
11 |
-
<meta property="og:url" content="https://huggingface.co/chat" />
|
12 |
-
<meta property="og:image" content="%sveltekit.assets%/thumbnail.png" />
|
13 |
%sveltekit.head%
|
14 |
</head>
|
15 |
<body data-sveltekit-preload-data="hover" class="dark:bg-gray-900 h-full">
|
|
|
5 |
<link rel="icon" href="%sveltekit.assets%/favicon.png" />
|
6 |
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
|
7 |
<title>HuggingChat</title>
|
|
|
|
|
|
|
|
|
|
|
8 |
%sveltekit.head%
|
9 |
</head>
|
10 |
<body data-sveltekit-preload-data="hover" class="dark:bg-gray-900 h-full">
|
src/routes/+layout.svelte
CHANGED
@@ -9,6 +9,7 @@
|
|
9 |
|
10 |
import MobileNav from "$lib/components/MobileNav.svelte";
|
11 |
import NavMenu from "$lib/components/NavMenu.svelte";
|
|
|
12 |
|
13 |
export let data: LayoutData;
|
14 |
|
@@ -40,6 +41,14 @@
|
|
40 |
}
|
41 |
</script>
|
42 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
<div
|
44 |
class="grid h-full w-screen grid-cols-1 grid-rows-[auto,1fr] md:grid-rows-[1fr] md:grid-cols-[280px,1fr] overflow-hidden text-smd dark:text-gray-300"
|
45 |
>
|
|
|
9 |
|
10 |
import MobileNav from "$lib/components/MobileNav.svelte";
|
11 |
import NavMenu from "$lib/components/NavMenu.svelte";
|
12 |
+
import { PUBLIC_ORIGIN } from "$env/static/public";
|
13 |
|
14 |
export let data: LayoutData;
|
15 |
|
|
|
41 |
}
|
42 |
</script>
|
43 |
|
44 |
+
<svelte:head>
|
45 |
+
<meta name="description" content="The first open source alternative to ChatGPT. 💪" />
|
46 |
+
<meta property="og:title" content="HuggingChat" />
|
47 |
+
<meta property="og:type" content="website" />
|
48 |
+
<meta property="og:url" content="{PUBLIC_ORIGIN || $page.url.origin}{base}" />
|
49 |
+
<meta property="og:image" content="{PUBLIC_ORIGIN || $page.url.origin}{base}/thumbnail.png" />
|
50 |
+
</svelte:head>
|
51 |
+
|
52 |
<div
|
53 |
class="grid h-full w-screen grid-cols-1 grid-rows-[auto,1fr] md:grid-rows-[1fr] md:grid-cols-[280px,1fr] overflow-hidden text-smd dark:text-gray-300"
|
54 |
>
|