Unverified Commit cd557c96 authored by Nick Anisimov's avatar Nick Anisimov Committed by GitHub

fix(cms-examples): title warning (#46262)



## Bug

- [x] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have a helpful link attached, see [`contributing.md`](https://github.com/vercel/next.js/blob/canary/contributing.md)

## Feature

- [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
- [ ] Related issues linked using `fixes #number`
- [ ] [e2e](https://github.com/vercel/next.js/blob/canary/contributing/core/testing.md#writing-tests-for-nextjs) tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.
- [ ] Errors have a helpful link attached, see [`contributing.md`](https://github.com/vercel/next.js/blob/canary/contributing.md)

## Documentation / Examples

- [x] Make sure the linting passes by running `pnpm build && pnpm lint`
- [ ] The "examples guidelines" are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md)

Fixes #46261 
parent 0d0a9804
...@@ -12,7 +12,7 @@ export default function PostDetails({ post }) { ...@@ -12,7 +12,7 @@ export default function PostDetails({ post }) {
<article> <article>
<Head> <Head>
<title> <title>
{post.title} | Next.js Blog Example with {CMS_NAME} {`${post.title} | Next.js Blog Example with ${CMS_NAME}`}
</title> </title>
<meta property="og:image" content={post.ogImage.url} /> <meta property="og:image" content={post.ogImage.url} />
</Head> </Head>
......
...@@ -27,7 +27,7 @@ export default function Slug({ ...@@ -27,7 +27,7 @@ export default function Slug({
<> <>
<Layout preview={preview}> <Layout preview={preview}>
<Head> <Head>
<title>Next.js Blog Example with {CMS_NAME}</title> <title>{`Next.js Blog Example with ${CMS_NAME}`}</title>
</Head> </Head>
<Container> <Container>
{router.isFallback ? ( {router.isFallback ? (
......
...@@ -14,7 +14,7 @@ export default function Index({ allPosts, preview }) { ...@@ -14,7 +14,7 @@ export default function Index({ allPosts, preview }) {
<> <>
<Layout preview={preview}> <Layout preview={preview}>
<Head> <Head>
<title>Next.js Blog Example with {CMS_NAME}</title> <title>{`Next.js Blog Example with ${CMS_NAME}`}</title>
</Head> </Head>
<Container> <Container>
<Intro /> <Intro />
......
...@@ -14,7 +14,7 @@ export default function Index({ preview, allPosts }) { ...@@ -14,7 +14,7 @@ export default function Index({ preview, allPosts }) {
<> <>
<Layout preview={preview}> <Layout preview={preview}>
<Head> <Head>
<title>Next.js Blog Example with {CMS_NAME}</title> <title>{`Next.js Blog Example with ${CMS_NAME}`}</title>
</Head> </Head>
<Container> <Container>
<Intro /> <Intro />
......
...@@ -30,7 +30,7 @@ export default function Post({ post, morePosts, preview }) { ...@@ -30,7 +30,7 @@ export default function Post({ post, morePosts, preview }) {
<article> <article>
<Head> <Head>
<title> <title>
{post.title} | Next.js Blog Example with {CMS_NAME} {`${post.title} | Next.js Blog Example with ${CMS_NAME}`}
</title> </title>
<meta property="og:image" content={post.coverImage.url} /> <meta property="og:image" content={post.coverImage.url} />
</Head> </Head>
......
...@@ -23,7 +23,7 @@ const Index = (props: IndexProps) => { ...@@ -23,7 +23,7 @@ const Index = (props: IndexProps) => {
<> <>
<Layout preview={preview}> <Layout preview={preview}>
<Head> <Head>
<title>Next.js Blog Example with {CMS_NAME}</title> <title>{`Next.js Blog Example with ${CMS_NAME}`}</title>
</Head> </Head>
<Container> <Container>
<Intro /> <Intro />
......
...@@ -38,7 +38,7 @@ const Post = (props: PostProps) => { ...@@ -38,7 +38,7 @@ const Post = (props: PostProps) => {
<article> <article>
<Head> <Head>
<title> <title>
{post.title} | Next.js Blog Example with {CMS_NAME} {`${post.title} | Next.js Blog Example with ${CMS_NAME}`}
</title> </title>
<meta <meta
property="og:image" property="og:image"
......
...@@ -14,7 +14,7 @@ export default function Index({ allPosts }) { ...@@ -14,7 +14,7 @@ export default function Index({ allPosts }) {
<> <>
<Layout> <Layout>
<Head> <Head>
<title>Next.js Blog Example with {CMS_NAME}</title> <title>{`Next.js Blog Example with ${CMS_NAME}`}</title>
</Head> </Head>
<Container> <Container>
<Intro /> <Intro />
......
...@@ -29,7 +29,7 @@ export default function Post({ post, morePosts, preview }) { ...@@ -29,7 +29,7 @@ export default function Post({ post, morePosts, preview }) {
<article> <article>
<Head> <Head>
<title> <title>
{post.title} | Next.js Blog Example with {CMS_NAME} {`${post.title} | Next.js Blog Example with ${CMS_NAME}`}
</title> </title>
<meta property="og:image" content={post.ogImage.url} /> <meta property="og:image" content={post.ogImage.url} />
</Head> </Head>
......
...@@ -35,7 +35,7 @@ export default function Post({ post, morePosts, preview }) { ...@@ -35,7 +35,7 @@ export default function Post({ post, morePosts, preview }) {
<article> <article>
<Head> <Head>
<title> <title>
{post.title} | Next.js Blog Example with {CMS_NAME} {`${post.title} | Next.js Blog Example with ${CMS_NAME}`}
</title> </title>
<meta <meta
property="og:image" property="og:image"
......
...@@ -15,7 +15,7 @@ export default function Index({ posts }) { ...@@ -15,7 +15,7 @@ export default function Index({ posts }) {
return ( return (
<Layout> <Layout>
<Head> <Head>
<title>Next.js Blog Example with {CMS_NAME}</title> <title>{`Next.js Blog Example with ${CMS_NAME}`}</title>
</Head> </Head>
<Container> <Container>
<Intro /> <Intro />
......
...@@ -14,7 +14,7 @@ export default function Index({ allPosts }) { ...@@ -14,7 +14,7 @@ export default function Index({ allPosts }) {
<> <>
<Layout> <Layout>
<Head> <Head>
<title>Next.js Blog Example with {CMS_NAME}</title> <title>{`Next.js Blog Example with ${CMS_NAME}`}</title>
</Head> </Head>
<Container> <Container>
<Intro /> <Intro />
......
...@@ -28,7 +28,7 @@ export default function Post({ post, morePosts, preview }) { ...@@ -28,7 +28,7 @@ export default function Post({ post, morePosts, preview }) {
<article> <article>
<Head> <Head>
<title> <title>
{post.title} | Next.js Blog Example with {CMS_NAME} {`${post.title} | Next.js Blog Example with ${CMS_NAME}`}
</title> </title>
<meta property="og:image" content={post.feature_image} /> <meta property="og:image" content={post.feature_image} />
</Head> </Head>
......
...@@ -14,7 +14,7 @@ export default function Index({ posts, preview }) { ...@@ -14,7 +14,7 @@ export default function Index({ posts, preview }) {
<> <>
<Layout preview={preview}> <Layout preview={preview}>
<Head> <Head>
<title>Next.js Blog Example with {CMS_NAME}</title> <title>{`Next.js Blog Example with ${CMS_NAME}`}</title>
</Head> </Head>
<Container> <Container>
<Intro /> <Intro />
......
...@@ -30,7 +30,7 @@ export default function Post({ post, morePosts, preview }) { ...@@ -30,7 +30,7 @@ export default function Post({ post, morePosts, preview }) {
<article> <article>
<Head> <Head>
<title> <title>
{post.title} | Next.js Blog Example with {CMS_NAME} {`${post.title} | Next.js Blog Example with ${CMS_NAME}`}
</title> </title>
{/* <meta property="og:image" content={post.ogImage.url} /> */} {/* <meta property="og:image" content={post.ogImage.url} /> */}
</Head> </Head>
......
...@@ -20,7 +20,7 @@ export default function Index({ allPosts, preview }: IndexProps) { ...@@ -20,7 +20,7 @@ export default function Index({ allPosts, preview }: IndexProps) {
<> <>
<Layout preview={preview}> <Layout preview={preview}>
<Head> <Head>
<title>Next.js Blog Example with {CMS_NAME}</title> <title>{`Next.js Blog Example with ${CMS_NAME}`}</title>
</Head> </Head>
<Container> <Container>
<Intro /> <Intro />
......
...@@ -39,7 +39,7 @@ export default function Post({ post, morePosts = [], preview }: PostProps) { ...@@ -39,7 +39,7 @@ export default function Post({ post, morePosts = [], preview }: PostProps) {
<article className="mb-32"> <article className="mb-32">
<Head> <Head>
<title> <title>
{post.title} | Next.js Blog Example with {CMS_NAME} {`${post.title} | Next.js Blog Example with ${CMS_NAME}`}
</title> </title>
<meta property="og:image" content={post.coverImage} /> <meta property="og:image" content={post.coverImage} />
</Head> </Head>
......
...@@ -14,7 +14,7 @@ export default function Index({ posts, preview }) { ...@@ -14,7 +14,7 @@ export default function Index({ posts, preview }) {
<> <>
<Layout preview={preview}> <Layout preview={preview}>
<Head> <Head>
<title>Next.js Blog Example with {CMS_NAME}</title> <title>{`Next.js Blog Example with ${CMS_NAME}`}</title>
</Head> </Head>
<Container> <Container>
<Intro /> <Intro />
......
...@@ -30,7 +30,7 @@ export default function Post({ post, morePosts, preview }) { ...@@ -30,7 +30,7 @@ export default function Post({ post, morePosts, preview }) {
<article> <article>
<Head> <Head>
<title> <title>
{post.title} | Next.js Blog Example with {CMS_NAME} {`${post.title} | Next.js Blog Example with ${CMS_NAME}`}
</title> </title>
{/* <meta property="og:image" content={post.ogImage.url} /> */} {/* <meta property="og:image" content={post.ogImage.url} /> */}
</Head> </Head>
......
...@@ -21,7 +21,7 @@ export default function Index({ preview, allPosts }: IndexProps) { ...@@ -21,7 +21,7 @@ export default function Index({ preview, allPosts }: IndexProps) {
<> <>
<Layout preview={preview}> <Layout preview={preview}>
<Head> <Head>
<title>Next.js Blog Example with {CMS_NAME}</title> <title>{`Next.js Blog Example with ${CMS_NAME}`}</title>
</Head> </Head>
<Container> <Container>
<Intro /> <Intro />
......
...@@ -19,7 +19,7 @@ export default function Index({ allPosts: initialAllPosts, preview }) { ...@@ -19,7 +19,7 @@ export default function Index({ allPosts: initialAllPosts, preview }) {
<> <>
<Layout preview={preview}> <Layout preview={preview}>
<Head> <Head>
<title>Next.js Blog Example with {CMS_NAME}</title> <title>{`Next.js Blog Example with ${CMS_NAME}`}</title>
</Head> </Head>
<Container> <Container>
<Intro /> <Intro />
......
...@@ -41,7 +41,7 @@ export default function Post({ data = {}, preview }) { ...@@ -41,7 +41,7 @@ export default function Post({ data = {}, preview }) {
<article> <article>
<Head> <Head>
<title> <title>
{post.title} | Next.js Blog Example with {CMS_NAME} {`${post.title} | Next.js Blog Example with ${CMS_NAME}`}
</title> </title>
{post.coverImage?.asset?._ref && ( {post.coverImage?.asset?._ref && (
<meta <meta
......
...@@ -19,7 +19,7 @@ export default function Index({ allPosts }: Props) { ...@@ -19,7 +19,7 @@ export default function Index({ allPosts }: Props) {
<> <>
<Layout> <Layout>
<Head> <Head>
<title>Next.js Blog Example with {CMS_NAME}</title> <title>{`Next.js Blog Example with ${CMS_NAME}`}</title>
</Head> </Head>
<Container> <Container>
<Intro /> <Intro />
......
...@@ -33,7 +33,7 @@ export default function Post({ post, morePosts, preview }: Props) { ...@@ -33,7 +33,7 @@ export default function Post({ post, morePosts, preview }: Props) {
<article className="mb-32"> <article className="mb-32">
<Head> <Head>
<title> <title>
{post.title} | Next.js Blog Example with {CMS_NAME} {`${post.title} | Next.js Blog Example with ${CMS_NAME}`}
</title> </title>
<meta property="og:image" content={post.ogImage.url} /> <meta property="og:image" content={post.ogImage.url} />
</Head> </Head>
......
...@@ -14,7 +14,7 @@ export default function Index({ allPosts, preview }) { ...@@ -14,7 +14,7 @@ export default function Index({ allPosts, preview }) {
<> <>
<Layout preview={preview}> <Layout preview={preview}>
<Head> <Head>
<title>Next.js Blog Example with {CMS_NAME}</title> <title>{`Next.js Blog Example with ${CMS_NAME}`}</title>
</Head> </Head>
<Container> <Container>
<Intro /> <Intro />
......
...@@ -14,7 +14,7 @@ export default function Index({ allPosts, preview }) { ...@@ -14,7 +14,7 @@ export default function Index({ allPosts, preview }) {
<> <>
<Layout preview={preview}> <Layout preview={preview}>
<Head> <Head>
<title>Next.js Blog Example with {CMS_NAME}</title> <title>{`Next.js Blog Example with ${CMS_NAME}`}</title>
</Head> </Head>
<Container> <Container>
<Intro /> <Intro />
......
...@@ -30,7 +30,7 @@ export default function Post({ post, morePosts, preview }) { ...@@ -30,7 +30,7 @@ export default function Post({ post, morePosts, preview }) {
<article> <article>
<Head> <Head>
<title> <title>
{post.title} | Next.js Blog Example with {CMS_NAME} {`${post.title} | Next.js Blog Example with ${CMS_NAME}`}
</title> </title>
<meta <meta
property="og:image" property="og:image"
......
...@@ -14,7 +14,7 @@ export default function Index({ allPosts }) { ...@@ -14,7 +14,7 @@ export default function Index({ allPosts }) {
<> <>
<Layout> <Layout>
<Head> <Head>
<title>Next.js Blog Example with {CMS_NAME}</title> <title>{`Next.js Blog Example with ${CMS_NAME}`}</title>
</Head> </Head>
<Container> <Container>
<Intro /> <Intro />
......
...@@ -27,7 +27,7 @@ export default function Post({ post, morePosts, preview }) { ...@@ -27,7 +27,7 @@ export default function Post({ post, morePosts, preview }) {
<article className="mb-32"> <article className="mb-32">
<Head> <Head>
<title> <title>
{post.title} | Next.js Blog Example with {CMS_NAME} {`${post.title} | Next.js Blog Example with ${CMS_NAME}`}
</title> </title>
<meta property="og:image" content={post.ogImage.url} /> <meta property="og:image" content={post.ogImage.url} />
</Head> </Head>
......
...@@ -30,7 +30,7 @@ export default function Post({ post, morePosts, preview }) { ...@@ -30,7 +30,7 @@ export default function Post({ post, morePosts, preview }) {
<article> <article>
<Head> <Head>
<title> <title>
{post.title} | Next.js Blog Example with {CMS_NAME} {`${post.title} | Next.js Blog Example with ${CMS_NAME}`}
</title> </title>
{<meta property="og:image" content={post.ogImage.url} />} {<meta property="og:image" content={post.ogImage.url} />}
</Head> </Head>
......
...@@ -14,7 +14,7 @@ export default function Index({ posts, preview }) { ...@@ -14,7 +14,7 @@ export default function Index({ posts, preview }) {
<> <>
<Layout preview={preview}> <Layout preview={preview}>
<Head> <Head>
<title>Next.js Blog Example with {CMS_NAME}</title> <title>{`Next.js Blog Example with ${CMS_NAME}`}</title>
</Head> </Head>
<Container> <Container>
<Intro /> <Intro />
......
...@@ -14,7 +14,7 @@ export default function Index({ allPosts, preview }) { ...@@ -14,7 +14,7 @@ export default function Index({ allPosts, preview }) {
<> <>
<Layout preview={preview}> <Layout preview={preview}>
<Head> <Head>
<title>Next.js Blog Example with {CMS_NAME}</title> <title>{`Next.js Blog Example with ${CMS_NAME}`}</title>
</Head> </Head>
<Container> <Container>
<Intro /> <Intro />
......
...@@ -28,7 +28,7 @@ export default function Post({ post, morePosts, preview }) { ...@@ -28,7 +28,7 @@ export default function Post({ post, morePosts, preview }) {
<article className="mb-32"> <article className="mb-32">
<Head> <Head>
<title> <title>
{post.title} | Next.js Blog Example with {CMS_NAME} {`${post.title} | Next.js Blog Example with ${CMS_NAME}`}
</title> </title>
<meta property="og:image" content={post.featuredImage} /> <meta property="og:image" content={post.featuredImage} />
</Head> </Head>
......
...@@ -15,7 +15,7 @@ export default function Index({ allPosts: { edges }, preview }) { ...@@ -15,7 +15,7 @@ export default function Index({ allPosts: { edges }, preview }) {
return ( return (
<Layout preview={preview}> <Layout preview={preview}>
<Head> <Head>
<title>Next.js Blog Example with {CMS_NAME}</title> <title>{`Next.js Blog Example with ${CMS_NAME}`}</title>
</Head> </Head>
<Container> <Container>
<Intro /> <Intro />
......
...@@ -33,7 +33,7 @@ export default function Post({ post, posts, preview }) { ...@@ -33,7 +33,7 @@ export default function Post({ post, posts, preview }) {
<article> <article>
<Head> <Head>
<title> <title>
{post.title} | Next.js Blog Example with {CMS_NAME} {`${post.title} | Next.js Blog Example with ${CMS_NAME}`}
</title> </title>
<meta <meta
property="og:image" property="og:image"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment