Skip to content

Commit

Permalink
Add SEO
Browse files Browse the repository at this point in the history
  • Loading branch information
mnigh committed Oct 28, 2024
1 parent aa29935 commit 7ce2c77
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions apps/web/src/pages/DirectivePage/DirectivePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import {
import Hero from "~/components/HeroDeprecated";
import useBreadcrumbs from "~/hooks/useBreadcrumbs";
import useRoutes from "~/hooks/useRoutes";
import SEO from "~/components/SEO/SEO";

import Resources from "./Resources";

Expand Down Expand Up @@ -76,6 +77,13 @@ export const pageTitle = defineMessage({
description: "Title for the digital talent directive page",
});

export const pageSubtitle = defineMessage({
defaultMessage:
"Learn more about how the Government of Canada is strengthening the talent base of the GC digital community.",
id: "c/u1K+",
description: "Subtitle for the digital talent directive page",
});

export const Component = () => {
const intl = useIntl();
const locale = getLocale(intl);
Expand Down Expand Up @@ -103,14 +111,13 @@ export const Component = () => {

return (
<>
<SEO
title={intl.formatMessage(pageTitle)}
description={intl.formatMessage(pageSubtitle)}
/>
<Hero
title={intl.formatMessage(pageTitle)}
subtitle={intl.formatMessage({
defaultMessage:
"Learn more about how the Government of Canada is strengthening the talent base of the GC digital community.",
id: "c/u1K+",
description: "Subtitle for the digital talent directive page",
})}
subtitle={intl.formatMessage(pageSubtitle)}
crumbs={crumbs}
linkSlot={
<>
Expand Down

0 comments on commit 7ce2c77

Please sign in to comment.