mirror of
https://github.com/hex248/ob248.com.git
synced 2026-02-07 18:23:04 +00:00
only provide visible projects as options
This commit is contained in:
@@ -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}`,
|
||||
|
||||
Reference in New Issue
Block a user