Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Google rewrites page titles in search results:
https://support.google.com/webmasters/answer/35624?hl=en
See the Trello card for screenshots of podcasts.thoughtbot.com page titles
being re-written in Google search results:
https://trello.com/c/3rO5yDi2
Since we can rely on Google adding "thoughtbot" and "podcast" to the page
title for search queries, this commit simplifies our page title strategy:
Since we don't need Flutie's
page_title
method, and weren't using itsother method,
body_class
, it can be removed.This commit also fixes a
yield(:meta_description) ||
problem by usingyield(:meta_description).presence ||
.yield
without acontent_for
returns an empty string, no
nil
.All page title and meta description specs have been consolidated in the
spec/features/google_results_spec.rb file.