~repos /website

#astro#js#html#css

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

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


e6f8f54e pyrossh

1 month ago
update site
src/pages/index.astro CHANGED
@@ -61,6 +61,12 @@ import styles from "./index.module.css";
61
61
  https://crates.io/users/pyrossh
62
62
  </a>
63
63
  </li>
64
+ <li>
65
+ <strong>npm:</strong>
66
+ <a href="https://www.npmjs.com/~pyrossh">
67
+ https://www.npmjs.com/~pyrossh
68
+ </a>
69
+ </li>
64
70
  <li>
65
71
  <strong>linkedin:</strong>
66
72
  <a href="https://www.linkedin.com/in/peter-john-in">
src/pages/repos/[...slug]/commits/index.astro CHANGED
@@ -14,7 +14,6 @@ type Props = CollectionEntry<"repos">;
14
14
  const {
15
15
  data: { title, description, commits },
16
16
  } = Astro.props;
17
- console.log("commits", commits);
18
17
  ---
19
18
 
20
19
  <Layout title={title} description={description}>
src/pages/repos/[...slug]/files/index.astro ADDED
@@ -0,0 +1,20 @@
1
+ ---
2
+ import { type CollectionEntry, getCollection } from "astro:content";
3
+ import Layout from "@/layouts/Base.astro";
4
+
5
+ export async function getStaticPaths() {
6
+ const repos = await getCollection("repos");
7
+ return repos.map((repo) => ({
8
+ params: { slug: repo.id },
9
+ props: repo,
10
+ }));
11
+ }
12
+ type Props = CollectionEntry<"repos">;
13
+ const {
14
+ data: { title, description, commits },
15
+ } = Astro.props;
16
+ ---
17
+
18
+ <Layout title={title} description={description}>
19
+ <h1>WIP: Work in progess. Coming Soon...</h1>
20
+ </Layout>