--- import { site } from '../config'; import type { ProjectDownload } from '../data/loaders'; interface Props { name: string; description: string; coverImage: string; tags: string[]; repo: string; repoUrl?: string; featured?: boolean; demoVideo?: string; downloadLink?: string; downloads?: ProjectDownload[]; } const { name, description, coverImage, tags, repo, repoUrl, featured = false, demoVideo = '', downloadLink = '', downloads = [], } = Astro.props; const fallbackRepoUrl = repo ? `${site.gitea.url}/${repo}` : ''; const resolvedRepoUrl = repoUrl || fallbackRepoUrl; const visibleDownloads = downloads.filter((item) => item.name || item.url); ---
{`${name}
{repo} {featured ? featured : null}

{name}

{description}

{tags.map((tag) => {tag})}
{ visibleDownloads.length > 0 ? ( ) : null }