Skip to content

Update SEO titles on index page and post pages #344

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

Merged
merged 1 commit into from
Dec 18, 2018

Conversation

davidalber
Copy link
Contributor

This PR updates the SEO title (i.e., <title>, twitter:title, and og:title) for the index page and post pages.

Current SEO Titles

Index page

"Blog"
image

Post Page

"The Rust Programming Language Blog"
image

SEO Titles After Change

Index page

"The Rust Programming Language Blog"
image

Post Page

"post.title | Rust Blog"
image

Note on other approaches: I went through an earlier approach that added a second attribute on the render data (e.g., "seo_title"), but I ultimately did not go with it because index.hbs is used to render only one page, so hardcoding "Blog" seems reasonable.

If merged, this fixes #315 (and also the index page). I modified the suggested string in #315 because I found more examples of blog posts that combine the post title and blog name than just use the post title. I'm happy to change it to anything else, if there's a strong preference otherwise.

@rust-highfive
Copy link

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @alexcrichton (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see the contribution instructions for more information.

@alexcrichton
Copy link
Member

r? @steveklabnik

@steveklabnik steveklabnik merged commit 5e430c2 into rust-lang:master Dec 18, 2018
@steveklabnik
Copy link
Member

Thank you!

@davidalber davidalber deleted the title-tags branch December 18, 2018 16:19
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.

Improve post title meta data
4 participants