fix: meta tag
This commit is contained in:
parent
e39bd90911
commit
d5a4f83f6f
4 changed files with 19 additions and 17 deletions
30
package-lock.json
generated
30
package-lock.json
generated
|
@ -12,7 +12,7 @@
|
|||
"@astrojs/cloudflare": "^11.2.0",
|
||||
"@astrojs/rss": "4.0.9",
|
||||
"@astrojs/sitemap": "3.2.1",
|
||||
"@cdransf/astro-tabler-icons": "1.0.5",
|
||||
"@cdransf/astro-tabler-icons": "1.1.0",
|
||||
"@supabase/supabase-js": "^2.46.1",
|
||||
"astro": "4.16.15",
|
||||
"astro-embed": "0.9.0",
|
||||
|
@ -679,9 +679,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/@cdransf/astro-tabler-icons": {
|
||||
"version": "1.0.5",
|
||||
"resolved": "https://registry.npmjs.org/@cdransf/astro-tabler-icons/-/astro-tabler-icons-1.0.5.tgz",
|
||||
"integrity": "sha512-6ACX9F1mrwf7QToieIfudPoyz0WDCeZQzj2cxmE7/CArZU1NXd30wO6UYiN4l9H+Nv7PTdz0LTH+paQsVxEOtg==",
|
||||
"version": "1.1.0",
|
||||
"resolved": "https://registry.npmjs.org/@cdransf/astro-tabler-icons/-/astro-tabler-icons-1.1.0.tgz",
|
||||
"integrity": "sha512-KRI4lFvhn9THfCxOBaU5OPtqN+q8nyuXjJNvpwmJ1dLTCc+kjo+QPUjZv1cV8ObGBNsRBxVI7UF09FBiaa3bNg==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/@cloudflare/kv-asset-handler": {
|
||||
|
@ -777,9 +777,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/@cloudflare/workers-shared": {
|
||||
"version": "0.8.0",
|
||||
"resolved": "https://registry.npmjs.org/@cloudflare/workers-shared/-/workers-shared-0.8.0.tgz",
|
||||
"integrity": "sha512-1OvFkNtslaMZAJsaocTmbACApgmWv55uLpNj50Pn2MGcxdAjpqykXJFQw5tKc+lGV9TDZh9oO3Rsk17IEQDzIg==",
|
||||
"version": "0.9.0",
|
||||
"resolved": "https://registry.npmjs.org/@cloudflare/workers-shared/-/workers-shared-0.9.0.tgz",
|
||||
"integrity": "sha512-eP6Ir45uPbKnpADVzUCtkRUYxYxjB1Ew6n/whTJvHu8H4m93USHAceCMm736VBZdlxuhXXUjEP3fCUxKPn+cfw==",
|
||||
"license": "MIT OR Apache-2.0",
|
||||
"dependencies": {
|
||||
"mime": "^3.0.0",
|
||||
|
@ -7557,9 +7557,9 @@
|
|||
},
|
||||
"node_modules/unenv": {
|
||||
"name": "unenv-nightly",
|
||||
"version": "2.0.0-20241111-080453-894aa31",
|
||||
"resolved": "https://registry.npmjs.org/unenv-nightly/-/unenv-nightly-2.0.0-20241111-080453-894aa31.tgz",
|
||||
"integrity": "sha512-0W39QQOQ9VE8kVVUpGwEG+pZcsCXk5wqNG6rDPE6Gr+fiA69LR0qERM61hW5KCOkC1/ArCFrfCGjwHyyv/bI0Q==",
|
||||
"version": "2.0.0-20241121-161142-806b5c0",
|
||||
"resolved": "https://registry.npmjs.org/unenv-nightly/-/unenv-nightly-2.0.0-20241121-161142-806b5c0.tgz",
|
||||
"integrity": "sha512-RnFOasE/O0Q55gBkNB1b84OgKttgLEijGO0JCWpbn+O4XxpyCQg89NmcqQ5RGUiy4y+rMIrKzePTquQcLQF5pQ==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"defu": "^6.1.4",
|
||||
|
@ -8289,13 +8289,13 @@
|
|||
}
|
||||
},
|
||||
"node_modules/wrangler": {
|
||||
"version": "3.90.0",
|
||||
"resolved": "https://registry.npmjs.org/wrangler/-/wrangler-3.90.0.tgz",
|
||||
"integrity": "sha512-E/6E9ORAl987+3kP8wDiE3L1lj9r4vQ32/dl5toIxIkSMssmPRQVdxqwgMxbxJrytbFNo8Eo6swgjd4y4nUaLg==",
|
||||
"version": "3.91.0",
|
||||
"resolved": "https://registry.npmjs.org/wrangler/-/wrangler-3.91.0.tgz",
|
||||
"integrity": "sha512-Hdzn6wbY9cz5kL85ZUvWLwLIH7nPaEVRblfms40jhRf4qQO/Zf74aFlku8rQFbe8/2aVZFaxJVfBd6JQMeMSBQ==",
|
||||
"license": "MIT OR Apache-2.0",
|
||||
"dependencies": {
|
||||
"@cloudflare/kv-asset-handler": "0.3.4",
|
||||
"@cloudflare/workers-shared": "0.8.0",
|
||||
"@cloudflare/workers-shared": "0.9.0",
|
||||
"@esbuild-plugins/node-globals-polyfill": "^0.2.3",
|
||||
"@esbuild-plugins/node-modules-polyfill": "^0.2.2",
|
||||
"blake3-wasm": "^2.1.5",
|
||||
|
@ -8310,7 +8310,7 @@
|
|||
"resolve.exports": "^2.0.2",
|
||||
"selfsigned": "^2.0.1",
|
||||
"source-map": "^0.6.1",
|
||||
"unenv": "npm:unenv-nightly@2.0.0-20241111-080453-894aa31",
|
||||
"unenv": "npm:unenv-nightly@2.0.0-20241121-161142-806b5c0",
|
||||
"workerd": "1.20241106.1",
|
||||
"xxhash-wasm": "^1.0.1"
|
||||
},
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
"@astrojs/cloudflare": "^11.2.0",
|
||||
"@astrojs/rss": "4.0.9",
|
||||
"@astrojs/sitemap": "3.2.1",
|
||||
"@cdransf/astro-tabler-icons": "1.0.5",
|
||||
"@cdransf/astro-tabler-icons": "1.1.0",
|
||||
"@supabase/supabase-js": "^2.46.1",
|
||||
"astro": "4.16.15",
|
||||
"astro-embed": "0.9.0",
|
||||
|
|
|
@ -61,12 +61,13 @@ const pageDescription = md(description);
|
|||
property="og:description"
|
||||
content={htmlToText(htmlTruncate(pageDescription))}
|
||||
/>
|
||||
<meta property="og:type" content={schema || "page"} />
|
||||
<meta property="og:type" content={schema || "website"} />
|
||||
<meta property="og:url" content={`${globals.url}${pageUrl}`} />
|
||||
<meta
|
||||
property="og:image"
|
||||
content={`${globals.cdn_url}${ogImage}?class=w800`}
|
||||
/>
|
||||
<meta property="og:site_name" content="coryd.dev">
|
||||
<meta name="theme-color" content={globals.theme_color} />
|
||||
<meta name="fediverse:creator" content={globals.mastodon} />
|
||||
<meta name="generator" content="Astro" />
|
||||
|
|
|
@ -78,6 +78,7 @@ export const sanitizeContent = (html) =>
|
|||
"h1",
|
||||
"h2",
|
||||
"h3",
|
||||
"jsx",
|
||||
],
|
||||
allowedAttributes: {
|
||||
a: ["href"],
|
||||
|
|
Reference in a new issue