rsnext/examples/with-next-seo/pages/index.js
Steven 4466ba436b
chore(examples): use default prettier for examples/templates (#60530)
## Description
This PR ensures that the default prettier config is used for examples
and templates.

This config is compatible with `prettier@3` as well (upgrading prettier
is bigger change that can be a future PR).

## Changes
- Updated `.prettierrc.json` in root with `"trailingComma": "es5"` (will
be needed upgrading to prettier@3)
- Added `examples/.prettierrc.json` with default config (this will
change every example)
- Added `packages/create-next-app/templates/.prettierrc.json` with
default config (this will change every template)

## Related

- Fixes #54402
- Closes #54409
2024-01-11 16:01:44 -07:00

41 lines
1.2 KiB
JavaScript

import { NextSeo } from "next-seo";
import Link from "next/link";
export default function Home() {
return (
<div>
<NextSeo
title="Page Meta Title"
description="This will be the page meta description"
canonical="https://www.canonicalurl.ie/"
openGraph={{
url: "https://www.canonicalurl.ie/",
title: "Open Graph Title",
description: "Open Graph Description",
images: [
{
url: "https://www.example.ie/og-image-01.jpg",
width: 800,
height: 600,
alt: "Og Image Alt",
},
{
url: "https://www.example.ie/og-image-02.jpg",
width: 900,
height: 800,
alt: "Og Image Alt Second",
},
{ url: "https://www.example.ie/og-image-03.jpg" },
{ url: "https://www.example.ie/og-image-04.jpg" },
],
}}
/>
<h1>SEO Added to Page</h1>
<p>Take a look at the head to see what has been added.</p>
<p>
Or checkout how <Link href="/jsonld">JSON-LD</Link> (Structured Data) is
added
</p>
</div>
);
}