Removed release and commit count its useless.
Some checks failed
Docker Deploy / build-and-push (push) Has been cancelled

This commit is contained in:
2025-11-22 17:31:52 -07:00
parent 3b1f9ae02c
commit be20d75288
2 changed files with 25 additions and 60 deletions

View File

@@ -26,39 +26,21 @@ const { project } = Astro.props;
{
project.giteaInfo &&
(project.giteaInfo.commits > 0 ||
project.giteaInfo.releases > 0 ||
project.giteaInfo.language) && (
(project.giteaInfo.languages.length > 0 ||
project.giteaInfo.updatedAt) && (
<>
<div class="divider my-2 before:bg-accent-content/30 after:bg-accent-content/30" />
<div class="flex flex-wrap gap-3 justify-center text-sm">
<div class="flex items-center gap-1.5">
<Icon
name="mdi:source-commit"
class="w-4 h-4"
/>
<span class="font-semibold">
{project.giteaInfo.commits}
</span>
<span class="opacity-70">commits</span>
</div>
<div class="flex items-center gap-1.5">
<Icon name="mdi:tag-multiple" class="w-4 h-4" />
<span class="font-semibold">
{project.giteaInfo.releases}
</span>
<span class="opacity-70">releases</span>
</div>
</div>
<div class="flex flex-wrap gap-2 justify-center mt-2">
{project.giteaInfo.language && (
<div class="badge badge-sm gap-1 bg-accent-content/20 border-accent-content/30">
<Icon
name="mdi:code-tags"
class="w-3 h-3"
/>
{project.giteaInfo.language}
</div>
<div class="flex flex-wrap gap-2 justify-center">
{project.giteaInfo.languages.map(
(language: string) => (
<div class="badge badge-sm gap-1 bg-accent-content/20 border-accent-content/30">
<Icon
name="mdi:code-tags"
class="w-3 h-3"
/>
{language}
</div>
),
)}
{project.giteaInfo.updatedAt && (
<div class="badge badge-sm gap-1 bg-accent-content/20 border-accent-content/30">