fetch repos locally

Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com>
This commit is contained in:
Hadi
2026-03-30 19:14:29 +02:00
parent a12b3ae671
commit 7105f2a5b2
8 changed files with 937 additions and 349 deletions

View File

@@ -1,10 +1,9 @@
---
import GiteaProjectCard from "./GiteaProjectCard.astro";
import { ArrowRight } from "@lucide/astro";
import { fetchGiteaRepos } from "../lib/gitea";
import repos from "../data/repos.json";
const repos = await fetchGiteaRepos();
const latestRepos = repos.slice(0, 3); // 3 plus récents sur la homepage
const latestRepos = repos.slice(0, 3);
---
<section id="projects" class="py-20 px-4">