Skip to content

Commit

Permalink
add canonical urls
Browse files Browse the repository at this point in the history
  • Loading branch information
leonlenk committed Jun 9, 2024
1 parent 1fcd1e5 commit 6a5885a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions components/metadata.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ import { OpenGraphMedia } from "next-seo/lib/types";

export default function Metadata({
title,
pageName,
description,
images,
}: {
title: string;
pageName: string;
description?: string;
images?: OpenGraphMedia[];
}) {
Expand All @@ -17,6 +19,7 @@ export default function Metadata({
description ??
"We are a club at UCLA dedicated to making engineering and research in AI easy, accessiable, and fun for all!"
}
canonical={"https://www.acmai.la/" + pageName}
openGraph={{
type: "website",
images: images ?? [
Expand Down
2 changes: 1 addition & 1 deletion pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Metadata from "@/components/metadata";
export default function Page() {
return (
<>
<Metadata title="Home" />
<Metadata title="Home" pageName="" />

{/* page one */}
<div id="welcome" className={styles.stackContainer}>
Expand Down

0 comments on commit 6a5885a

Please sign in to comment.