Skip to content

Commit

Permalink
add schema (#223)
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanSmiths committed Dec 6, 2024
1 parent a9124b4 commit 1688930
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/crafts/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import Filter, { Label } from "./components/Filter";
import Header from "./components/Header";
import Images from "./components/Images";
import { craftsHeaderProps } from "./components/headerProps";
import { craftsSchema } from "../../utils/metadata/Schemas";

export const metadata: Metadata = craftsMetadata;

Expand All @@ -25,6 +26,10 @@ const Crafts: FC = async () => {
<Filter currentPage={Label.All} />
<Images images={images} />
<Footer />
<script
type="application/ld+json"
dangerouslySetInnerHTML={{ __html: JSON.stringify(craftsSchema) }}
/>
</>
);
};
Expand Down
5 changes: 5 additions & 0 deletions app/crafts/photos/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import Navbar, { Position } from "../../globalComponents/Navbar/Navbar";
import Filter, { Label } from "../components/Filter";
import Header from "../components/Header";
import Images from "../components/Images";
import { photosSchema } from "../../../utils/metadata/Schemas";

export const metadata: Metadata = photosMetadata;

Expand All @@ -25,6 +26,10 @@ const Photos: FC = async () => {
<Filter currentPage={Label.Photos} />
<Images images={images} />
<Footer />
<script
type="application/ld+json"
dangerouslySetInnerHTML={{ __html: JSON.stringify(photosSchema) }}
/>
</>
);
};
Expand Down
5 changes: 5 additions & 0 deletions app/crafts/renders/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import Filter, { Label } from "../components/Filter";
import Header from "../components/Header";
import Images from "../components/Images";
import { rendersHeaderProps } from "../components/headerProps";
import { rendersSchema } from "../../../utils/metadata/Schemas";

export const metadata: Metadata = rendersMetadata;

Expand All @@ -25,6 +26,10 @@ const Renders: FC = async () => {
<Filter currentPage={Label.Renders} />
<Images images={images} />
<Footer />
<script
type="application/ld+json"
dangerouslySetInnerHTML={{ __html: JSON.stringify(rendersSchema) }}
/>
</>
);
};
Expand Down

0 comments on commit 1688930

Please sign in to comment.