TryGhost / Ghost

Independent technology for modern publishing, memberships, subscriptions and newsletters.
https://ghost.org
MIT License
46.2k stars 10.1k forks source link

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

Open cathysarisky opened 2 days ago

cathysarisky commented 2 days ago

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

cathysarisky commented 2 days ago

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/