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

add meta tags for SEO #1136

Closed
wants to merge 1 commit into from

Conversation

fabiosantoscode
Copy link
Contributor

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.

},
{
name: 'twitter:image',
content: encodeURI(`${siteMeta.siteUrl}${image}`)
Copy link
Member

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 ?

Copy link
Contributor

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.

Copy link
Member

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 }) => {
Copy link
Member

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',
Copy link
Member

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',
Copy link
Member

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?

@shcheklein
Copy link
Member

Closing this in favor of #1183

@shcheklein shcheklein closed this Apr 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants