Skip to content

Commit

Permalink
fix(cms-examples): title warning (vercel#46262)
Browse files Browse the repository at this point in the history
## 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 vercel#46261
  • Loading branch information
none23 committed Feb 23, 2023
1 parent 0d0a980 commit cd557c9
Show file tree
Hide file tree
Showing 35 changed files with 35 additions and 35 deletions.
2 changes: 1 addition & 1 deletion examples/cms-agilitycms/components/post-details.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion examples/cms-agilitycms/pages/[...slug].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 ? (
Expand Down
2 changes: 1 addition & 1 deletion examples/cms-builder-io/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 />
Expand Down
2 changes: 1 addition & 1 deletion examples/cms-contentful/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 />
Expand Down
2 changes: 1 addition & 1 deletion examples/cms-contentful/pages/posts/[slug].js
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion examples/cms-cosmic/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 />
Expand Down
2 changes: 1 addition & 1 deletion examples/cms-cosmic/pages/posts/[slug].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion examples/cms-datocms/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 />
Expand Down
2 changes: 1 addition & 1 deletion examples/cms-datocms/pages/posts/[slug].js
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion examples/cms-drupal/pages/[...slug].js
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion examples/cms-drupal/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 />
Expand Down
2 changes: 1 addition & 1 deletion examples/cms-ghost/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 />
Expand Down
2 changes: 1 addition & 1 deletion examples/cms-ghost/pages/posts/[slug].js
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion examples/cms-graphcms/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 />
Expand Down
2 changes: 1 addition & 1 deletion examples/cms-graphcms/pages/posts/[slug].js
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion examples/cms-kontent-ai/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 />
Expand Down
2 changes: 1 addition & 1 deletion examples/cms-kontent-ai/pages/posts/[slug].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion examples/cms-prepr/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 />
Expand Down
2 changes: 1 addition & 1 deletion examples/cms-prepr/pages/posts/[slug].js
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion examples/cms-prismic/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 />
Expand Down
2 changes: 1 addition & 1 deletion examples/cms-sanity/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 />
Expand Down
2 changes: 1 addition & 1 deletion examples/cms-sanity/pages/posts/[slug].js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/cms-sitefinity/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 />
Expand Down
2 changes: 1 addition & 1 deletion examples/cms-sitefinity/pages/posts/[...slug].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion examples/cms-storyblok/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 />
Expand Down
2 changes: 1 addition & 1 deletion examples/cms-takeshape/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 />
Expand Down
2 changes: 1 addition & 1 deletion examples/cms-takeshape/pages/posts/[slug].js
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion examples/cms-tina/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 />
Expand Down
2 changes: 1 addition & 1 deletion examples/cms-tina/pages/posts/[slug].js
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion examples/cms-umbraco-heartcore/pages/[...slug].js
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion examples/cms-umbraco-heartcore/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 />
Expand Down
2 changes: 1 addition & 1 deletion examples/cms-webiny/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 />
Expand Down
2 changes: 1 addition & 1 deletion examples/cms-webiny/pages/posts/[slug].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion examples/cms-wordpress/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 />
Expand Down
2 changes: 1 addition & 1 deletion examples/cms-wordpress/pages/posts/[slug].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit cd557c9

Please sign in to comment.