Compare commits
2 commits
b79e3e2e47
...
39e3703d73
Author | SHA1 | Date | |
---|---|---|---|
39e3703d73 | |||
92db311e59 |
4 changed files with 32 additions and 1 deletions
|
@ -10,6 +10,8 @@ import cloudflare from '@astrojs/cloudflare';
|
|||
import remarkMath from "remark-math";
|
||||
import rehypeKatex from "rehype-katex";
|
||||
|
||||
import partytown from '@astrojs/partytown';
|
||||
|
||||
export default defineConfig({
|
||||
site: 'https://terminal-blog.example.com',
|
||||
base: '/',
|
||||
|
@ -32,7 +34,7 @@ export default defineConfig({
|
|||
rehypePlugins: [ rehypeKatex ]
|
||||
},
|
||||
|
||||
integrations: [sitemap(), mdx()],
|
||||
integrations: [sitemap(), mdx(), partytown()],
|
||||
|
||||
adapter: cloudflare()
|
||||
});
|
|
@ -14,6 +14,7 @@
|
|||
"@astrojs/cloudflare": "^12.5.4",
|
||||
"@astrojs/mdx": "^4.2.6",
|
||||
"@astrojs/node": "^9.2.2",
|
||||
"@astrojs/partytown": "^2.1.4",
|
||||
"@astrojs/rss": "^4.0.1",
|
||||
"@astrojs/sitemap": "^3.3.1",
|
||||
"@fontsource-variable/jetbrains-mono": "^5.2.5",
|
||||
|
|
20
pnpm-lock.yaml
generated
20
pnpm-lock.yaml
generated
|
@ -17,6 +17,9 @@ importers:
|
|||
'@astrojs/node':
|
||||
specifier: ^9.2.2
|
||||
version: 9.2.2(astro@5.7.10(@azure/identity@4.9.1)(@types/node@22.15.3)(rollup@4.40.1)(typescript@5.8.3)(yaml@2.7.1))
|
||||
'@astrojs/partytown':
|
||||
specifier: ^2.1.4
|
||||
version: 2.1.4
|
||||
'@astrojs/rss':
|
||||
specifier: ^4.0.1
|
||||
version: 4.0.11
|
||||
|
@ -97,6 +100,9 @@ packages:
|
|||
peerDependencies:
|
||||
astro: ^5.3.0
|
||||
|
||||
'@astrojs/partytown@2.1.4':
|
||||
resolution: {integrity: sha512-loUrAu0cGYFDC6dHVRiomdsBJ41VjDYXPA+B3Br51V5hENFgDSOLju86OIj1TvBACcsB22UQV7BlppODDG5gig==}
|
||||
|
||||
'@astrojs/prism@3.2.0':
|
||||
resolution: {integrity: sha512-GilTHKGCW6HMq7y3BUv9Ac7GMe/MO9gi9GW62GzKtth0SwukCu/qp2wLiGpEujhY+VVhaG9v7kv/5vFzvf4NYw==}
|
||||
engines: {node: ^18.17.1 || ^20.3.0 || >=22.0.0}
|
||||
|
@ -838,6 +844,11 @@ packages:
|
|||
resolution: {integrity: sha512-c83qWb22rNRuB0UaVCI0uRPNRr8Z0FWnEIvT47jiHAmOIUHbBOg5XvV7pM5x+rKn9HRpjxquDbXYSXr3fAKFcw==}
|
||||
engines: {node: '>=12'}
|
||||
|
||||
'@qwik.dev/partytown@0.11.2':
|
||||
resolution: {integrity: sha512-795y49CqBiKiwKAD+QBZlzlqEK275hVcazZ7wBPSfgC23L+vWuA7PJmMpgxojOucZHzYi5rAAQ+IP1I3BKVZxw==}
|
||||
engines: {node: '>=18.0.0'}
|
||||
hasBin: true
|
||||
|
||||
'@rollup/pluginutils@5.1.4':
|
||||
resolution: {integrity: sha512-USm05zrsFxYLPdWWq+K3STlWiT/3ELn3RcV5hJMghpeAIhxfsUIg6mt12CBJBInWMV4VneoV7SfGv8xIwo2qNQ==}
|
||||
engines: {node: '>=14.0.0'}
|
||||
|
@ -3470,6 +3481,11 @@ snapshots:
|
|||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
|
||||
'@astrojs/partytown@2.1.4':
|
||||
dependencies:
|
||||
'@qwik.dev/partytown': 0.11.2
|
||||
mrmime: 2.0.1
|
||||
|
||||
'@astrojs/prism@3.2.0':
|
||||
dependencies:
|
||||
prismjs: 1.30.0
|
||||
|
@ -4122,6 +4138,10 @@ snapshots:
|
|||
'@pnpm/network.ca-file': 1.0.2
|
||||
config-chain: 1.1.13
|
||||
|
||||
'@qwik.dev/partytown@0.11.2':
|
||||
dependencies:
|
||||
dotenv: 16.5.0
|
||||
|
||||
'@rollup/pluginutils@5.1.4(rollup@4.40.1)':
|
||||
dependencies:
|
||||
'@types/estree': 1.0.7
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
import Favicon from "../../../assets/favicon.png";
|
||||
import FaviconSvg from '../../../assets/favicon.svg';
|
||||
import {getImage} from "astro:assets";
|
||||
import {siteConfig} from "../../../config";
|
||||
|
||||
const appleTouchIcon = await getImage({
|
||||
src: Favicon,
|
||||
|
@ -24,6 +25,13 @@ const canonicalURL = new URL(Astro.url.pathname, Astro.site);
|
|||
<meta name="title" content={title} />
|
||||
{author && <meta name="author" content={author} />}
|
||||
<meta name="description" content={description} />
|
||||
{/* RSS */}
|
||||
<link
|
||||
rel="alternate"
|
||||
type="application/rss+xml"
|
||||
title={`${siteConfig.title}/feed`}
|
||||
href={new URL("rss.xml", Astro.site)}
|
||||
/>
|
||||
{/* PWA */}
|
||||
<link rel="icon" href="/favicon.ico" sizes="32x32" />
|
||||
<link rel="icon" href={FaviconSvg.src} type="image/svg+xml" />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue