Skip to content

Commit d1611a7

Browse files
committed
add noindex
1 parent ce8e23b commit d1611a7

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

src/content/changelog/access/2025-03-14-test.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ title: TEST
33
description: Access for SaaS new SAML and OIDC Fields and SAML transforms
44
date: 2025-03-14T6:00:00Z
55
hidden: true
6+
noindex: true
67
---
78

89
TEST

src/pages/changelog/[...slug].astro

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ const props = {
3232
frontmatter: {
3333
title: note.data.title,
3434
template: "splash",
35+
noindex: note.data.noindex,
3536
},
3637
headings,
3738
hideTitle: true,

src/schemas/changelog.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,10 @@ export const changelogSchema = ({ image }: SchemaContext) =>
1414
"An array of products to associate this changelog entry with. You may omit the product named after the folder this entry is in.",
1515
),
1616
preview_image: image().optional(),
17+
noindex: z
18+
.boolean()
19+
.optional()
20+
.describe(
21+
"If true, this property adds a `noindex` declaration to the page, which will tell internal / external search crawlers to ignore this page. Helpful for pages that are historically accurate, but no longer recommended, such as [Workers Sites](/workers/configuration/sites/).",
22+
),
1723
});

0 commit comments

Comments
 (0)