Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/trueberryless-org/automatic-starlog-template. Create a Changelog website from GitHub releases
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142---import type { Page } from "astro";
import { splitPackageScope } from "../libs/package";import type { Release as ReleaseEntry } from "../libs/release";
import Pagination from "./Pagination.astro";import Release from "./Release.astro";import Search from "./Search.astro";
interface Props { packageName: string; page: Page<ReleaseEntry>; title: string;}
const { packageName, page, title } = Astro.props;
const titleSegments = splitPackageScope(title);---
<main> <h1 class="page_title"> {titleSegments.map((segment, index) => ( <> {index > 0 && <wbr />} {segment} </> ))} </h1> <Search {packageName} /> <hr /> <ul class="posts" transition:name="post"> {page.data.map((release) => ( <li class="post"> <Release isLink {release} /> </li> ))} </ul> <Pagination {page} /></main>