Files
vue-seo-layer/testing/fixtures/seo/html.json
Jakub Zych aee6957bd6 feat: HTML sitemap pages and footer link
- the module registers seo-sitemap-<locale> at seo.htmlSitemap.paths
  (defaults pl /mapa-strony, en /sitemap) and seo-sitemap-group-<locale>
  at <path>/:group (plus <path>/:group/<segment>/:page in the path form);
  a path an app page already has stays the app's
- SeoHtmlSitemapPage (global, overridable): H1, an H2 per non-empty
  group, categories nested, a large group's link to its group page,
  sitemap.empty; group pages with a built trail, page suffix and
  <SeoPagination>; 404 for an unknown group or a page past the last,
  301 for ?page=1, 503 when the sitemap API fails
- GET /api/__seo__/sitemap proxies the sitemap plugin's HTML API (only
  while the CMS has the HTML sitemap on for the locale)
- <SeoSitemapLink>: the footer link while the HTML sitemap is on
- L3 default styles
2026-11-04 12:00:00 +01:00

128 lines
2.9 KiB
JSON

{
"overview": {
"pl": {
"groups": [
{
"key": "pages",
"slug": "strony",
"title": "Strony",
"total": 2,
"more": false,
"entries": [
{
"title": "O nas",
"url": "https://example.test/about"
},
{
"title": "Kontakt",
"url": "https://example.test/kontakt"
}
]
},
{
"key": "categories",
"slug": "kategorie",
"title": "Kategorie",
"total": 3,
"more": false,
"entries": [
{
"title": "Grzyby",
"url": "https://example.test/grzyby",
"children": [
{
"title": "Lecznicze",
"url": "https://example.test/grzyby/lecznicze"
},
{
"title": "Bardzo długa nazwa kategorii, która nie mieści się w jednej kolumnie i musi się zawinąć",
"url": "https://example.test/grzyby/dluga"
}
]
}
]
},
{
"key": "posts",
"slug": "posts",
"title": "Wpisy",
"total": 1234,
"more": true,
"entries": [
{
"title": "Lwia grzywa",
"url": "https://example.test/blog/lwia-grzywa"
},
{
"title": "<script>alert(1)</script>",
"url": "javascript:alert(1)"
}
]
},
{
"key": "tags",
"slug": "tagi",
"title": "Tagi",
"total": 0,
"more": false,
"entries": []
}
]
},
"en": {
"groups": [
{
"key": "pages",
"slug": "pages",
"title": "Pages",
"total": 0,
"more": false,
"entries": []
}
]
}
},
"groups": {
"pl": {
"posts": {
"1": {
"group": "posts",
"title": "Wpisy",
"page": 1,
"pages": 3,
"entries": [
{
"title": "Lwia grzywa",
"url": "https://example.test/blog/lwia-grzywa"
}
]
},
"2": {
"group": "posts",
"title": "Wpisy",
"page": 2,
"pages": 3,
"entries": [
{
"title": "Soplówka",
"url": "https://example.test/blog/soplowka"
}
]
},
"3": {
"group": "posts",
"title": "Wpisy",
"page": 3,
"pages": 3,
"entries": [
{
"title": "Reishi",
"url": "https://example.test/blog/reishi"
}
]
}
}
}
}
}