thuliteio / seo

Official SEO integration for Thulite
https://seo.thulite.io
MIT License
0 stars 2 forks source link

Breadcrumb structured data on pages with custom url? #24

Open h-enk opened 5 days ago

h-enk commented 5 days ago

Discussed in https://github.com/orgs/thuliteio/discussions/498

Originally posted by **pensivedog** November 22, 2024 My website has several content types whose content items are neatly arranged in directories like `content/content-type/leaf-bundle/`. No problem there. However, I have a bunch of pages that, for the sake of keeping my `content` directory organized, live in `content/pages/page-title/`. In the font matter of these pages, I set `url` manually so that the URLs don't include `/pages/`. For all of these content items, Google Search Console gives the error `Either "name" or "item.name" should be specified (in "itemListElement") Items with this issue are invalid`. Any idea how I can fix this error for these pages?
h-enk commented 5 days ago

Confirmed — see for example: https://search.google.com/test/rich-results/result?id=gHEpXsuB370ASHdsfSRyxQ

h-enk commented 5 days ago

Update https://github.com/thuliteio/seo/blob/main/layouts/partials/seo/schemas/breadcrumb.html for https://gist.github.com/jmooring/4a5e3c0334713bf60d63089c9cda36b5