// SPDX-FileCopyrightText: 2026 Progmasoft // SPDX-License-Identifier: AGPL-3.0-or-later import type { Metadata } from "next"; import { getGitMessages } from "@/lib/git-messages"; import { gitSections } from "@/lib/git.server"; import { getLocale } from "@/lib/locale.server"; import { GitFrame, gitDate } from "./GitFrame"; export async function generateMetadata(): Promise { const text = getGitMessages(await getLocale()); return { title: text.metadataTitle, description: text.description, alternates: { canonical: "https://git.progmasoft.com/" }, }; } /** git.progmasoft.com: the mirrored repositories, by section. */ export default async function GitIndexPage() { const locale = await getLocale(); const text = getGitMessages(locale); const sections = (await gitSections()) ?? []; return ( {sections.length === 0 ?

{text.noRepositories}

: null} {sections.map((section) => (

{section.name}

    {section.repositories.map((repository) => (
  • {repository.name}

    {repository.description}

    {repository.updatedAt ? (

    {text.updated}{" "}

    ) : null}
  • ))}
))}
); }