Skip to content

Commit ff1a539

Browse files
committed
Backend changes for updated to reviewed rename
1 parent dad9413 commit ff1a539

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/components/overrides/Head.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,8 @@ if (lastUpdated) {
167167
});
168168
}
169169
170-
if (frontmatter.updated) {
171-
const daysBetween = differenceInCalendarDays(new Date(), frontmatter.updated);
170+
if (frontmatter.reviewed) {
171+
const daysBetween = differenceInCalendarDays(new Date(), frontmatter.reviewed);
172172
173173
metaTags.push({
174174
name: "pcx_last_reviewed",

src/components/overrides/PageTitle.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { getEntry } from "astro:content";
1616
const frontmatter = Astro.locals.starlightRoute.entry.data;
1717
1818
const spotlightDetails = frontmatter.spotlight;
19-
const updated = frontmatter.updated;
19+
const reviewed = frontmatter.reviewed;
2020
const summary = frontmatter.summary;
2121
const component = frontmatter.styleGuide?.component;
2222
@@ -106,7 +106,7 @@ const hideBreadcrumbs = Astro.locals.starlightRoute.hideBreadcrumbs;
106106

107107
{!hideTitle && <Default />}
108108

109-
{updated && <LastReviewed date={updated} />}
109+
{reviewed && <LastReviewed date={reviewed} />}
110110

111111
{
112112
spotlightDetails && (

src/content/docs/style-guide/components/last-reviewed.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ title: Last reviewed
55
## Component
66

77
:::caution
8-
This component is automatically included on pages that have a `updated` frontmatter entry, under the page title.
8+
This component is automatically included on pages that have a `reviewed` frontmatter entry, under the page title.
99
:::
1010

1111
```mdx live

src/schemas/base.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export const baseSchema = ({ image }: SchemaContext) =>
7474
.describe(
7575
"Difficulty is displayed as a column in the [ListTutorials component](/style-guide/components/list-tutorials/).",
7676
),
77-
updated: z
77+
reviewed: z
7878
.date()
7979
.optional()
8080
.describe(

0 commit comments

Comments
 (0)