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
This commit is contained in:
Nick Anisimov 2023-02-23 18:21:03 +03:00 committed by GitHub
parent 0d0a980415
commit cd557c9667
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
35 changed files with 35 additions and 35 deletions

View file

@ -12,7 +12,7 @@ export default function PostDetails({ post }) {
<article>
<Head>
<title>
{post.title} | Next.js Blog Example with {CMS_NAME}
{`${post.title} | Next.js Blog Example with ${CMS_NAME}`}
</title>
<meta property="og:image" content={post.ogImage.url} />
</Head>

View file

@ -27,7 +27,7 @@ export default function Slug({
<>
<Layout preview={preview}>
<Head>
<title>Next.js Blog Example with {CMS_NAME}</title>
<title>{`Next.js Blog Example with ${CMS_NAME}`}</title>
</Head>
<Container>
{router.isFallback ? (

View file

@ -14,7 +14,7 @@ export default function Index({ allPosts, preview }) {
<>
<Layout preview={preview}>
<Head>
<title>Next.js Blog Example with {CMS_NAME}</title>
<title>{`Next.js Blog Example with ${CMS_NAME}`}</title>
</Head>
<Container>
<Intro />

View file

@ -14,7 +14,7 @@ export default function Index({ preview, allPosts }) {
<>
<Layout preview={preview}>
<Head>
<title>Next.js Blog Example with {CMS_NAME}</title>
<title>{`Next.js Blog Example with ${CMS_NAME}`}</title>
</Head>
<Container>
<Intro />

View file

@ -30,7 +30,7 @@ export default function Post({ post, morePosts, preview }) {
<article>
<Head>
<title>
{post.title} | Next.js Blog Example with {CMS_NAME}
{`${post.title} | Next.js Blog Example with ${CMS_NAME}`}
</title>
<meta property="og:image" content={post.coverImage.url} />
</Head>

View file

@ -23,7 +23,7 @@ const Index = (props: IndexProps) => {
<>
<Layout preview={preview}>
<Head>
<title>Next.js Blog Example with {CMS_NAME}</title>
<title>{`Next.js Blog Example with ${CMS_NAME}`}</title>
</Head>
<Container>
<Intro />

View file

@ -38,7 +38,7 @@ const Post = (props: PostProps) => {
<article>
<Head>
<title>
{post.title} | Next.js Blog Example with {CMS_NAME}
{`${post.title} | Next.js Blog Example with ${CMS_NAME}`}
</title>
<meta
property="og:image"

View file

@ -14,7 +14,7 @@ export default function Index({ allPosts }) {
<>
<Layout>
<Head>
<title>Next.js Blog Example with {CMS_NAME}</title>
<title>{`Next.js Blog Example with ${CMS_NAME}`}</title>
</Head>
<Container>
<Intro />

View file

@ -29,7 +29,7 @@ export default function Post({ post, morePosts, preview }) {
<article>
<Head>
<title>
{post.title} | Next.js Blog Example with {CMS_NAME}
{`${post.title} | Next.js Blog Example with ${CMS_NAME}`}
</title>
<meta property="og:image" content={post.ogImage.url} />
</Head>

View file

@ -35,7 +35,7 @@ export default function Post({ post, morePosts, preview }) {
<article>
<Head>
<title>
{post.title} | Next.js Blog Example with {CMS_NAME}
{`${post.title} | Next.js Blog Example with ${CMS_NAME}`}
</title>
<meta
property="og:image"

View file

@ -15,7 +15,7 @@ export default function Index({ posts }) {
return (
<Layout>
<Head>
<title>Next.js Blog Example with {CMS_NAME}</title>
<title>{`Next.js Blog Example with ${CMS_NAME}`}</title>
</Head>
<Container>
<Intro />

View file

@ -14,7 +14,7 @@ export default function Index({ allPosts }) {
<>
<Layout>
<Head>
<title>Next.js Blog Example with {CMS_NAME}</title>
<title>{`Next.js Blog Example with ${CMS_NAME}`}</title>
</Head>
<Container>
<Intro />

View file

@ -28,7 +28,7 @@ export default function Post({ post, morePosts, preview }) {
<article>
<Head>
<title>
{post.title} | Next.js Blog Example with {CMS_NAME}
{`${post.title} | Next.js Blog Example with ${CMS_NAME}`}
</title>
<meta property="og:image" content={post.feature_image} />
</Head>

View file

@ -14,7 +14,7 @@ export default function Index({ posts, preview }) {
<>
<Layout preview={preview}>
<Head>
<title>Next.js Blog Example with {CMS_NAME}</title>
<title>{`Next.js Blog Example with ${CMS_NAME}`}</title>
</Head>
<Container>
<Intro />

View file

@ -30,7 +30,7 @@ export default function Post({ post, morePosts, preview }) {
<article>
<Head>
<title>
{post.title} | Next.js Blog Example with {CMS_NAME}
{`${post.title} | Next.js Blog Example with ${CMS_NAME}`}
</title>
{/* <meta property="og:image" content={post.ogImage.url} /> */}
</Head>

View file

@ -20,7 +20,7 @@ export default function Index({ allPosts, preview }: IndexProps) {
<>
<Layout preview={preview}>
<Head>
<title>Next.js Blog Example with {CMS_NAME}</title>
<title>{`Next.js Blog Example with ${CMS_NAME}`}</title>
</Head>
<Container>
<Intro />

View file

@ -39,7 +39,7 @@ export default function Post({ post, morePosts = [], preview }: PostProps) {
<article className="mb-32">
<Head>
<title>
{post.title} | Next.js Blog Example with {CMS_NAME}
{`${post.title} | Next.js Blog Example with ${CMS_NAME}`}
</title>
<meta property="og:image" content={post.coverImage} />
</Head>

View file

@ -14,7 +14,7 @@ export default function Index({ posts, preview }) {
<>
<Layout preview={preview}>
<Head>
<title>Next.js Blog Example with {CMS_NAME}</title>
<title>{`Next.js Blog Example with ${CMS_NAME}`}</title>
</Head>
<Container>
<Intro />

View file

@ -30,7 +30,7 @@ export default function Post({ post, morePosts, preview }) {
<article>
<Head>
<title>
{post.title} | Next.js Blog Example with {CMS_NAME}
{`${post.title} | Next.js Blog Example with ${CMS_NAME}`}
</title>
{/* <meta property="og:image" content={post.ogImage.url} /> */}
</Head>

View file

@ -21,7 +21,7 @@ export default function Index({ preview, allPosts }: IndexProps) {
<>
<Layout preview={preview}>
<Head>
<title>Next.js Blog Example with {CMS_NAME}</title>
<title>{`Next.js Blog Example with ${CMS_NAME}`}</title>
</Head>
<Container>
<Intro />

View file

@ -19,7 +19,7 @@ export default function Index({ allPosts: initialAllPosts, preview }) {
<>
<Layout preview={preview}>
<Head>
<title>Next.js Blog Example with {CMS_NAME}</title>
<title>{`Next.js Blog Example with ${CMS_NAME}`}</title>
</Head>
<Container>
<Intro />

View file

@ -41,7 +41,7 @@ export default function Post({ data = {}, preview }) {
<article>
<Head>
<title>
{post.title} | Next.js Blog Example with {CMS_NAME}
{`${post.title} | Next.js Blog Example with ${CMS_NAME}`}
</title>
{post.coverImage?.asset?._ref && (
<meta

View file

@ -19,7 +19,7 @@ export default function Index({ allPosts }: Props) {
<>
<Layout>
<Head>
<title>Next.js Blog Example with {CMS_NAME}</title>
<title>{`Next.js Blog Example with ${CMS_NAME}`}</title>
</Head>
<Container>
<Intro />

View file

@ -33,7 +33,7 @@ export default function Post({ post, morePosts, preview }: Props) {
<article className="mb-32">
<Head>
<title>
{post.title} | Next.js Blog Example with {CMS_NAME}
{`${post.title} | Next.js Blog Example with ${CMS_NAME}`}
</title>
<meta property="og:image" content={post.ogImage.url} />
</Head>

View file

@ -14,7 +14,7 @@ export default function Index({ allPosts, preview }) {
<>
<Layout preview={preview}>
<Head>
<title>Next.js Blog Example with {CMS_NAME}</title>
<title>{`Next.js Blog Example with ${CMS_NAME}`}</title>
</Head>
<Container>
<Intro />

View file

@ -14,7 +14,7 @@ export default function Index({ allPosts, preview }) {
<>
<Layout preview={preview}>
<Head>
<title>Next.js Blog Example with {CMS_NAME}</title>
<title>{`Next.js Blog Example with ${CMS_NAME}`}</title>
</Head>
<Container>
<Intro />

View file

@ -30,7 +30,7 @@ export default function Post({ post, morePosts, preview }) {
<article>
<Head>
<title>
{post.title} | Next.js Blog Example with {CMS_NAME}
{`${post.title} | Next.js Blog Example with ${CMS_NAME}`}
</title>
<meta
property="og:image"

View file

@ -14,7 +14,7 @@ export default function Index({ allPosts }) {
<>
<Layout>
<Head>
<title>Next.js Blog Example with {CMS_NAME}</title>
<title>{`Next.js Blog Example with ${CMS_NAME}`}</title>
</Head>
<Container>
<Intro />

View file

@ -27,7 +27,7 @@ export default function Post({ post, morePosts, preview }) {
<article className="mb-32">
<Head>
<title>
{post.title} | Next.js Blog Example with {CMS_NAME}
{`${post.title} | Next.js Blog Example with ${CMS_NAME}`}
</title>
<meta property="og:image" content={post.ogImage.url} />
</Head>

View file

@ -30,7 +30,7 @@ export default function Post({ post, morePosts, preview }) {
<article>
<Head>
<title>
{post.title} | Next.js Blog Example with {CMS_NAME}
{`${post.title} | Next.js Blog Example with ${CMS_NAME}`}
</title>
{<meta property="og:image" content={post.ogImage.url} />}
</Head>

View file

@ -14,7 +14,7 @@ export default function Index({ posts, preview }) {
<>
<Layout preview={preview}>
<Head>
<title>Next.js Blog Example with {CMS_NAME}</title>
<title>{`Next.js Blog Example with ${CMS_NAME}`}</title>
</Head>
<Container>
<Intro />

View file

@ -14,7 +14,7 @@ export default function Index({ allPosts, preview }) {
<>
<Layout preview={preview}>
<Head>
<title>Next.js Blog Example with {CMS_NAME}</title>
<title>{`Next.js Blog Example with ${CMS_NAME}`}</title>
</Head>
<Container>
<Intro />

View file

@ -28,7 +28,7 @@ export default function Post({ post, morePosts, preview }) {
<article className="mb-32">
<Head>
<title>
{post.title} | Next.js Blog Example with {CMS_NAME}
{`${post.title} | Next.js Blog Example with ${CMS_NAME}`}
</title>
<meta property="og:image" content={post.featuredImage} />
</Head>

View file

@ -15,7 +15,7 @@ export default function Index({ allPosts: { edges }, preview }) {
return (
<Layout preview={preview}>
<Head>
<title>Next.js Blog Example with {CMS_NAME}</title>
<title>{`Next.js Blog Example with ${CMS_NAME}`}</title>
</Head>
<Container>
<Intro />

View file

@ -33,7 +33,7 @@ export default function Post({ post, posts, preview }) {
<article>
<Head>
<title>
{post.title} | Next.js Blog Example with {CMS_NAME}
{`${post.title} | Next.js Blog Example with ${CMS_NAME}`}
</title>
<meta
property="og:image"