diff --git a/astro.config.mjs b/astro.config.mjs
index d5cb799..5c66377 100644
--- a/astro.config.mjs
+++ b/astro.config.mjs
@@ -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()
});
\ No newline at end of file
diff --git a/package.json b/package.json
index 7410bd3..c192e93 100644
--- a/package.json
+++ b/package.json
@@ -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",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 81207d7..b07960a 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -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
diff --git a/src/components/helper/head/Meta.astro b/src/components/helper/head/Meta.astro
index ec611c9..ac87257 100644
--- a/src/components/helper/head/Meta.astro
+++ b/src/components/helper/head/Meta.astro
@@ -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);
{author && }
+{/* RSS */}
+
{/* PWA */}