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