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

Include site title in page titles #260

Merged

Conversation

jonathanhefner
Copy link
Member

This adds the site title to each page's title. When using the default site title, this will incorporate ENV["HORO_PROJECT_NAME"] and ENV["HORO_BADGE_VERSION"] into the page title. For example,

<title>ActiveRecord::Base</title>

will become

<title>ActiveRecord::Base - Ruby on Rails v7.0.0 API documentation</title>

The intent is to give search engines more context and to differentiate between versions of the documentation.

This adds the site title to each page's title.  When using the default
site title, this will incorporate `ENV["HORO_PROJECT_NAME"]` and
`ENV["HORO_BADGE_VERSION"]` into the page title.  For example,

  ```html
  <title>ActiveRecord::Base</title>
  ```

will become

  ```html
  <title>ActiveRecord::Base - Ruby on Rails v7.0.0 API documentation</title>
  ```

The intent is to give search engines more context and to differentiate
between versions of the documentation.
@jonathanhefner jonathanhefner merged commit eb27d46 into rails:main Jul 31, 2023
10 checks passed
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.

1 participant