diff --git a/src/content/changelog/access/2025-03-14-test.mdx b/src/content/changelog/access/2025-03-14-test.mdx new file mode 100644 index 000000000000000..8e97af3680ab960 --- /dev/null +++ b/src/content/changelog/access/2025-03-14-test.mdx @@ -0,0 +1,9 @@ +--- +title: TEST +description: Access for SaaS new SAML and OIDC Fields and SAML transforms +date: 2025-03-14T6:00:00Z +hidden: true +noindex: true +--- + +TEST \ No newline at end of file diff --git a/src/pages/changelog/[...slug].astro b/src/pages/changelog/[...slug].astro index 2e2e1f1987c7744..10453bdefe18978 100644 --- a/src/pages/changelog/[...slug].astro +++ b/src/pages/changelog/[...slug].astro @@ -32,6 +32,7 @@ const props = { frontmatter: { title: note.data.title, template: "splash", + noindex: note.data.noindex, }, headings, hideTitle: true, diff --git a/src/pages/changelog/index.astro b/src/pages/changelog/index.astro index 065953b9e05edef..966314110554972 100644 --- a/src/pages/changelog/index.astro +++ b/src/pages/changelog/index.astro @@ -11,7 +11,8 @@ import { Steps } from "~/components"; import { format } from "date-fns"; import { getChangelogs } from "~/util/changelog"; -const notes = await getChangelogs({}); +const notes = await getChangelogs({ + filter: (entry) => entry.data.hidden !== true }); const props = { frontmatter: { diff --git a/src/pages/changelog/rss/index.xml.ts b/src/pages/changelog/rss/index.xml.ts index a256fe5ecbc0fca..7cd27cec59c1a8c 100644 --- a/src/pages/changelog/rss/index.xml.ts +++ b/src/pages/changelog/rss/index.xml.ts @@ -3,7 +3,9 @@ import type { APIRoute } from "astro"; import { getChangelogs, getRSSItems } from "~/util/changelog"; export const GET: APIRoute = async ({ locals }) => { - const notes = await getChangelogs({}); + const notes = await getChangelogs({ + filter: (entry) => entry.data.hidden !== true, + }); const items = await getRSSItems({ notes, diff --git a/src/schemas/changelog.ts b/src/schemas/changelog.ts index a5f366aff1f9468..29b9b698c01dbba 100644 --- a/src/schemas/changelog.ts +++ b/src/schemas/changelog.ts @@ -6,6 +6,7 @@ export const changelogSchema = ({ image }: SchemaContext) => title: z.string(), description: z.string(), date: z.coerce.date(), + hidden: z.boolean().optional(), products: z .array(reference("products")) .default([]) @@ -13,4 +14,10 @@ export const changelogSchema = ({ image }: SchemaContext) => "An array of products to associate this changelog entry with. You may omit the product named after the folder this entry is in.", ), preview_image: image().optional(), + noindex: z + .boolean() + .optional() + .describe( + "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/).", + ), });