Only show last projects component if projects are enabled on the website, otherwise don't render anything
This commit is contained in:
@@ -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>
|
||||
) }
|
||||
|
||||
Reference in New Issue
Block a user