website

#astro#js#html#css

git clone https://git.pyrossh.dev/website

木 Personal website of pyrossh. Built with astrojs, shiki, vite.


ad9b5ce — pyrossh 2026-07-04T14:57:32+05:30
chore: remove astro-icon dependency

Generated files not shown: pnpm-lock.yaml

Files changed (2) hide show
  1. package.json +0 -8
  2. src/pages/rss.xml.ts +7 -7
package.json CHANGED
@@ -18,7 +18,6 @@
18
18
  "astro": "6.3.1",
19
19
  "astro-color-scheme": "^1.1.6",
20
20
  "astro-expressive-code": "^0.42.0",
21
- "astro-icon": "^1.1.5",
22
21
  "diff": "^9.0.0",
23
22
  "isomorphic-git": "^1.38.6",
24
23
  "marked": "^18.0.5",
@@ -42,18 +41,11 @@
42
41
  "vscode-icons": "https://github.com/vscode-icons/vscode-icons.git",
43
42
  "wrangler": "^4.105.0"
44
43
  },
45
- "overrides": {
46
- "@iconify/tools": "5.0.5",
47
- "@iconify/utils": "3.1.0"
48
- },
49
44
  "devEngines": {
50
45
  "packageManager": {
51
46
  "name": "pnpm",
52
47
  "version": "11.9.0",
53
48
  "onFail": "download"
54
49
  }
55
- },
56
- "engines": {
57
- "bun": "1.3.3"
58
50
  }
59
51
  }
src/pages/rss.xml.ts CHANGED
@@ -1,17 +1,17 @@
1
- import type { APIRoute } from 'astro';
1
+ import type { APIRoute } from "astro";
2
- import { getCollection } from 'astro:content';
2
+ import { getCollection } from "astro:content";
3
- import rss from '@astrojs/rss';
3
+ import rss from "@astrojs/rss";
4
- import { SITE_TITLE, SITE_DESCRIPTION } from '../consts';
4
+ import { SITE_TITLE, SITE_DESCRIPTION } from "../consts";
5
5
 
6
6
  export const GET: APIRoute = async ({ site }) => {
7
- const posts = await getCollection('content');
7
+ const posts = await getCollection("content");
8
8
  return rss({
9
9
  title: SITE_TITLE,
10
10
  description: SITE_DESCRIPTION,
11
- site: site,
11
+ site: site ?? new URL("https://pyrossh.dev"),
12
12
  items: posts.map((post) => ({
13
13
  ...post.data,
14
14
  link: `/posts/${post.id}/`,
15
15
  })),
16
16
  });
17
- }
17
+ };