-
-
+}>): ReactElement => {
+ const pages: DocsContentMetadata[] = getDocsContent();
+ return (
+
+
+
+
+
-
-
-
-
-
-
-);
+
+
+
+
+
+ );
+};
export default RootLayout;
diff --git a/src/app/types/mdx.ts b/src/app/types/mdx.ts
index c2ddd48..01d547f 100644
--- a/src/app/types/mdx.ts
+++ b/src/app/types/mdx.ts
@@ -8,9 +8,9 @@ type DocsContentMetadata = MDXMetadata & {
title: string;
/**
- * The date this content was published.
+ * The date this content was updated.
*/
- published: string;
+ updated: string;
/**
* The summary of this content.
diff --git a/src/components/docs-footer.tsx b/src/components/docs-footer.tsx
index 7983063..b20c47a 100644
--- a/src/components/docs-footer.tsx
+++ b/src/components/docs-footer.tsx
@@ -24,14 +24,14 @@ const DocsFooter = ({
const next: DocsContentMetadata | undefined =
current < pages.length - 1 ? pages[current + 1] : undefined;
- const [publicationDate, setPublicationDate] = useState
(
- DateTime.fromISO(pages[current]?.published).toRelative()
+ const [updatedDate, setUpdatedDate] = useState(
+ DateTime.fromISO(pages[current]?.updated).toRelative()
);
useEffect(() => {
const interval = setInterval(() => {
- setPublicationDate(
- DateTime.fromISO(pages[current]?.published).toRelative()
+ setUpdatedDate(
+ DateTime.fromISO(pages[current]?.updated).toRelative()
);
}, 1000);
return () => clearInterval(interval);
@@ -39,15 +39,15 @@ const DocsFooter = ({
return (