-
-
Notifications
You must be signed in to change notification settings - Fork 131
refacto: moved title meta tag in pages #278
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
Conversation
<div> | ||
<Head> | ||
<title>{ {{{lc}}} && `Edit {{{ucf}}} ${ {{~lc}}['@id']}`}</title> | ||
<meta property="og:title" content={ {{{lc}}} && `Edit{{{ucf}}} ${ {{~lc}}['@id']}`} key="title" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this necessary if the content is the same as the <title>
tag?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems that the <title>
tag is used by Google and meta property="og:title"
is used by social medias.
(see: https://www.quora.com/In-terms-of-SEO-value-does-the-Open-Graph-meta-title-tag-meta-property-og-title-have-as-much-value-as-a-Title-tag-Can-we-leave-title-tag-out, it's an old thread but maybe still valid, see NextJS documentation examples about <Head />
component : https://nextjs.org/docs/api-reference/next/head)
<div> | ||
<div> | ||
<Head> | ||
<title>{`Show {{{ucf}}} ${ {{~lc}}['@id']}`}</title> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<title>{`Show {{{ucf}}} ${ {{~lc}}['@id']}`}</title> | |
<title>{`Show {{{ucf}}} ${ {{~lc}}['@id']}`}</title> |
Thanks @justinezahiri |
* refacto: moved title meta tag in pages * fixed typo in imports * removed og:title from Head
related to #260
moved title meta tag in pages instead of components