~repos /website
git clone https://pyrossh.dev/repos/website.git
木 Personal website of pyrossh. Built with astrojs, shiki, vite.
094f1904
—
pyrossh 1 year ago
fix canonical url
- src/routes/+layout.svelte +3 -2
- svelte.config.js +1 -0
src/routes/+layout.svelte
CHANGED
|
@@ -3,15 +3,16 @@
|
|
|
3
3
|
import Footer from '$lib/components/Footer.svelte';
|
|
4
4
|
import Header from '$lib/components/Header.svelte';
|
|
5
5
|
let { children } = $props();
|
|
6
|
+
let url = `https://pyros.sh${$page.url.pathname}`;
|
|
6
7
|
</script>
|
|
7
8
|
|
|
8
9
|
<svelte:head>
|
|
9
10
|
<meta name="author" content="pyrossh" />
|
|
10
11
|
<meta name="keywords" content="pyros.sh,pyrossh,astro,website" />
|
|
11
|
-
<link rel="canonical" href={
|
|
12
|
+
<link rel="canonical" href={url} />
|
|
12
13
|
<meta property="og:site_name" content="pyros.sh" />
|
|
13
14
|
<meta property="og:type" content="website" />
|
|
14
|
-
<meta property="og:url" content={
|
|
15
|
+
<meta property="og:url" content={url} />
|
|
15
16
|
</svelte:head>
|
|
16
17
|
<div
|
|
17
18
|
style="display: contents"
|
svelte.config.js
CHANGED
|
@@ -4,6 +4,7 @@ import adapter from '@sveltejs/adapter-static';
|
|
|
4
4
|
const config = {
|
|
5
5
|
kit: {
|
|
6
6
|
adapter: adapter({
|
|
7
|
+
strict: true,
|
|
7
8
|
fallback: '404.html'
|
|
8
9
|
})
|
|
9
10
|
}
|