Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/content/changelog/access/2025-03-14-test.mdx
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions src/pages/changelog/[...slug].astro
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ const props = {
frontmatter: {
title: note.data.title,
template: "splash",
noindex: note.data.noindex,
},
headings,
hideTitle: true,
Expand Down
3 changes: 2 additions & 1 deletion src/pages/changelog/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
4 changes: 3 additions & 1 deletion src/pages/changelog/rss/index.xml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
7 changes: 7 additions & 0 deletions src/schemas/changelog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,18 @@ 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([])
.describe(
"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/).",
),
});