Ghost icon indicating copy to clipboard operation
Ghost copied to clipboard

Paginated routes (index.hbs, author.hbs, tag.hbs) do not display the meta description.

Open cathysarisky opened this issue 1 year ago • 1 comments

Issue Summary

While the first page created by index.hbs/author.hbs/tag.hbs has the correct <meta name="description" content="some description text">, that meta tag is entirely missing from /page/2 and beyond.

Steps to Reproduce

Create enough of a single tag, enough posts by a single author, or enough posts on a route that uses index.hbs. Inspect the meta tags that result from /page/2.

Yes, this is a problem even for infinite scroll themes, since search engines still retrieve the later pages. (Or at least, we hope they do.)

Ghost Version

Ghost Pro

Node.js Version

18

How did you install Ghost?

Ghost Pro

Database type

MySQL 8

Browser & OS version

not releavant

Relevant log / error output

No response

Code of Conduct

  • [X] I agree to be friendly and polite to people in this repository

cathysarisky avatar Jun 30 '24 16:06 cathysarisky

If anyone needs a workaround until this is patched, here's how to edit the theme to write out the missing meta descriptions: https://www.spectralwebservices.com/blog/meta-descriptions-missing-in-ghost-how-to-fix/

cathysarisky avatar Jun 30 '24 16:06 cathysarisky

Thx to John for the explanation. The goal is to prioritize ranking the first page in a paginated series, so this behavior is by design.

cathysarisky avatar Oct 05 '24 12:10 cathysarisky