website

#astro#js#html#css

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

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


ba1411cpyrossh 2026-07-04T14:54:45+05:30
refactor: migrate RepoLayout icons to unplugin-icons
Files changed (1) hide show
  1. src/layouts/RepoLayout.astro +6 -6
src/layouts/RepoLayout.astro CHANGED
@@ -1,10 +1,10 @@
1
1
  ---
2
- import { type CollectionEntry } from "astro:content";
3
- import { Icon } from "astro-icon/components";
2
+ import MdiInformationOutline from "~icons/mdi/information-outline";
4
3
  import Layout from "@/layouts/BaseLayout.astro";
4
+ import type { RepoEntry } from "@/utils/repos";
5
5
 
6
6
  type Props = {
7
- repo: CollectionEntry<"repos">;
7
+ repo: RepoEntry;
8
8
  };
9
9
 
10
10
  const { repo } = Astro.props;
@@ -32,9 +32,9 @@ const { pathname } = Astro.url;
32
32
  <span
33
33
  data-tooltip="For contributions, please use git patches and send them to my email or the google group [email protected]"
34
34
  >
35
- <Icon
36
- name="mdi:information-outline"
35
+ <MdiInformationOutline
37
- size="18px"
36
+ width="18"
37
+ height="18"
38
38
  color="var(--color-text)"
39
39
  />
40
40
  </span>