only provide visible projects as options

This commit is contained in:
Oliver Bryan
2025-10-29 00:34:52 +00:00
parent 6f2b3fbbe4
commit e2b546fc49

View File

@@ -11,7 +11,7 @@ Object.values(
import.meta.glob<AstroModule>("../pages/projects/*.astro", { eager: true })
).forEach((module) => {
const metadata = module.metadata as ProjectMetadata;
if (metadata) {
if (metadata && !metadata.hidden) {
options.push({
name: `${metadata.title}`,
location: `/projects/${metadata.slug}`,