render project link condtionally

This commit is contained in:
2026-03-27 14:27:28 -04:00
parent 653adbe345
commit 7d9e5f08a4

View File

@@ -126,6 +126,8 @@ const currentUrl = Astro.url;
<p>{project.data.description}</p>
</div>
{project.data.link && (
<>
<hr class="my-4 border-t" />
<div class="flex flex-col gap-2 text-sm text-muted-foreground">
@@ -138,6 +140,8 @@ const currentUrl = Astro.url;
</li>
</ul>
</div>
</>
)}
</div>
</div>
</main>
@@ -151,6 +155,8 @@ const currentUrl = Astro.url;
<p>{project.data.description}</p>
</div>
{project.data.link && (
<>
<hr class="my-4 border-t" />
<div class="flex flex-col gap-2 text-sm text-muted-foreground">
@@ -163,6 +169,8 @@ const currentUrl = Astro.url;
</li>
</ul>
</div>
</>
)}
</div>
</div>
</aside>