-
Notifications
You must be signed in to change notification settings - Fork 394
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
add meta tags for SEO #1136
add meta tags for SEO #1136
Conversation
}, | ||
{ | ||
name: 'twitter:image', | ||
content: encodeURI(`${siteMeta.siteUrl}${image}`) |
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.
was encodeURI
actually needed? cc @iAdramelk ?
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.
To be hones I'm not sure. The one who originally added it to the blog was you https://github.com/iterative/blog/commit/3b5c975363fd4f86ef66dd102a2a130759df8fcb . I think then that you where fixing some kind of bug that we have without escaping, but if not, I'm not sure that we need it.
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.
Good question. I see that I was solving a different problem in the first place - absolute URL vs relative one. Don't remember at all why did I put encodeURI
to be honest.
} | ||
|
||
const BlogPostPage: React.FC<IBlogPostPageProps> = ({ data }) => { | ||
const BlogPostPage: React.SFC<IBlogPostPageProps> = ({ data }) => { |
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.
SFC is deprecated?
@@ -76,21 +94,13 @@ const DefaultSEO: React.FC<IDefaultSEOProps> = ({ pageInfo }) => { | |||
meta={meta} | |||
link={[ | |||
{ | |||
rel: 'shortcut icon', | |||
rel: 'icon', | |||
type: 'image/vnd.microsoft.icon', |
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 type required? legacy?
type: 'image/vnd.microsoft.icon', | ||
href: '/favicon.ico' | ||
}, | ||
{ | ||
rel: 'icon', |
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.
why are we removing these?
Closing this in favor of #1183 |
Port of https://github.com/iterative/blog/pull/144
On monday I'll see if all the which should be in here, are.
I've removed some stuff from the blog SEO which was repeated from the DefaultSEO component.