diff --git a/components/ArchivePage.tsx b/components/ArchivePage.tsx index bc1e1be..522578a 100644 --- a/components/ArchivePage.tsx +++ b/components/ArchivePage.tsx @@ -1,12 +1,14 @@ import React from "react"; -import { Link } from "@/components/Link"; +import { capitalize } from "@/utils"; + +import { Link } from "./Link"; import { ShapesConfig, GetShapesConfig, defaultGetShapesConfig, -} from "@/components/ShapesBackground"; -import { capitalize } from "@/utils"; +} from "./ShapesBackground"; +import { Title } from "./Title"; import styles from "./ArchivePage.module.css"; @@ -20,20 +22,23 @@ export interface Props { export function ArchivePage({ items, type }: Props) { return ( -
-

{capitalize(type)} Archive

- -
+ <> + {[capitalize(type), "Archive"]} +
+

{capitalize(type)} Archive

+ +
+ ); } diff --git a/components/OrganizedContent.tsx b/components/OrganizedContent.tsx index c2f2662..a119b97 100644 --- a/components/OrganizedContent.tsx +++ b/components/OrganizedContent.tsx @@ -26,6 +26,7 @@ interface Props { children: ReactNode; pageTitle: string; link: Link; + numberedSections?: boolean; } export function OrganizedContent({ @@ -34,6 +35,7 @@ export function OrganizedContent({ children, pageTitle, link: Link, + numberedSections = false, }: Props) { const [mobileNavOpen, setMobileNavOpen] = useState(false); const currentIndex = sections.findIndex( @@ -71,6 +73,7 @@ export function OrganizedContent({ currentIndex={currentIndex} link={Link} pageTitle={pageTitle} + numberedSections={numberedSections} mobileNavOpen={mobileNavOpen} setMobileNavOpen={setMobileNavOpen} /> @@ -80,7 +83,11 @@ export function OrganizedContent({ ) : ( <>
-

{section.title}

+

+ {numberedSections + ? `${currentIndex}. ${section.title}` + : section.title} +

{children}