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