Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v3 #786

Closed
4 tasks done
oekazuma opened this issue Aug 15, 2023 · 7 comments
Closed
4 tasks done

v3 #786

oekazuma opened this issue Aug 15, 2023 · 7 comments
Assignees

Comments

@oekazuma
Copy link
Owner

oekazuma commented Aug 15, 2023

Here is a summary of what needs to be done for v3.
Please give me any requests you would like to see added to v3.

Migration Guide

  • noindex and nofollow properties have been removed. They can be controlled by using the robots property instead.

v2.x

<MetaTags noindex={true} nofollow={true} />

v3

<MetaTags robots="noindex,nofollow" />
  • googlebot is no longer included by default, so if you want to continue to enable the googlebot, write the following.
<MetaTags
  additionalMetaTags={[
    {
      name: 'googlebot',
      content: 'index,follow'
    }
  ]}
/>
  • <meta name="robots"> element can now be disabled completely.
<MetaTags
  robots={false}
/>

If you want to disable <meta name="robots"> and enable only <meta name="googlebot">, write the following.

<MetaTags
  robots={false}
  additionalMetaTags={[
    {
      name: 'googlebot',
      content: 'index,follow'
    }
  ]}
/>
  • robotsProps property has been renamed additionalRobotsProps.

v2.x

<MetaTags
  robotsProps={{
    nosnippet: true,
    notranslate: true,
    noimageindex: true,
    noarchive: true,
    maxSnippet: -1,
    maxImagePreview: 'none',
    maxVideoPreview: -1
  }}
/>

v3

<MetaTags
  additionalRobotsProps={{
    nosnippet: true,
    notranslate: true,
    noimageindex: true,
    noarchive: true,
    maxSnippet: -1,
    maxImagePreview: 'none',
    maxVideoPreview: -1
  }}
/>
  • openGraph.site_name has been renamed to openGraph.siteName.

Reasons:

  1. because site_name will be removed and siteName will be adopted in the next major version of next-seo.
  2. since only site_name had adopted the snake case, its interface was aligned with other properties.

v2.x

<MetaTags
  openGraph={{
    site_name: 'SiteName'
  }}
/>

v3

<MetaTags
  openGraph={{
    siteName: 'SiteName'
  }}
/>
@oekazuma oekazuma pinned this issue Aug 15, 2023
@oekazuma oekazuma mentioned this issue Aug 15, 2023
Merged
@watanabemasahiro128
Copy link

@oekazuma
How about also adding a way to allow only googlebot tag to be set?
I think there is a demand for such.

@oekazuma
Copy link
Owner Author

oekazuma commented Aug 15, 2023

@watanabemasahiro128
I am working on it, but will be able to enable only googlebot by writing the following.
#789

<MetaTags
  robots={false}
  additionalMetaTags={[
    {
      name: 'googlebot',
      content: 'index,follow'
    }
  ]}
/>
@watanabemasahiro128
Copy link

@oekazuma
I see, you have created a new pull request.
Thank you.

@oekazuma oekazuma self-assigned this Aug 15, 2023
@OllieJT
Copy link

OllieJT commented Aug 22, 2023

What was the motivation behind moving from snake_case to camalCase?

@oekazuma
Copy link
Owner Author

oekazuma commented Aug 22, 2023

@OllieJT

  1. because site_name will be removed and siteName will be adopted in the next major version of next-seo.
  2. since only site_name had adopted the snake case, its interface was aligned with other properties.
@baseplate-admin
Copy link

  1. because site_name will be removed and siteName will be adopted in the next major version of next-seo.

Are we following the development of next-seo?

@oekazuma
Copy link
Owner Author

It does not completely follow next-seo, but it is at least a major SEO library.

I believe the move from React to Svelte should be welcomed.

I think this change is reasonable and I only mention it as one reason

motzel added a commit to BeatLeader/beatleader-website that referenced this issue Aug 29, 2023
@oekazuma oekazuma unpinned this issue Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants