render project link condtionally
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user