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:
parent
0d0a980415
commit
cd557c9667
35 changed files with 35 additions and 35 deletions
|
@ -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>
|
||||
|
|
|
@ -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 ? (
|
||||
|
|
|
@ -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 />
|
||||
|
|
|
@ -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 />
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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 />
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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 />
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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 />
|
||||
|
|
|
@ -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 />
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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 />
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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 />
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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 />
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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 />
|
||||
|
|
|
@ -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 />
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 />
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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 />
|
||||
|
|
|
@ -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 />
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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 />
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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 />
|
||||
|
|
|
@ -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 />
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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 />
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue