Only show last projects component if projects are enabled on the website, otherwise don't render anything

This commit is contained in:
itsfinniii
2026-03-26 22:25:34 +01:00
parent 1c41348afe
commit 2940446f66

View File

@@ -27,6 +27,7 @@ const size = calculateSizeClasses(projects.amount, lastProjects.length);
console.log(lastProjects[0].searchEngine);
---
{ settings.project.enabled && (
<div
id={`lastprojects-${projects.id}`}
class="flex lg:flex-col flex-col py-12 px-12 lg:container mx-auto gap-y-8 gap-x-18 w-full"
@@ -62,3 +63,5 @@ console.log(lastProjects[0].searchEngine);
)) }
</div>
</div>
) }