File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed
content/docs/style-guide/components Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff 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" ,
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ import { getEntry } from "astro:content";
1616const frontmatter = Astro .locals .starlightRoute .entry .data ;
1717
1818const spotlightDetails = frontmatter .spotlight ;
19- const updated = frontmatter .updated ;
19+ const reviewed = frontmatter .reviewed ;
2020const summary = frontmatter .summary ;
2121const 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 && (
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 (
You can’t perform that action at this time.
0 commit comments