From 98904b8fbd79dea9384be872c3a94610f7ec7037 Mon Sep 17 00:00:00 2001 From: Jakub Zych Date: Wed, 4 Nov 2026 13:54:46 +0100 Subject: [PATCH] feat: breadcrumbs, CMS pagination and pillar content on page one - post, index, category, tag and author pages render at the top of their content while journal.breadcrumbs is on (default); false leaves the trail to the site's layout, the BreadcrumbList data is unchanged - JournalPagination renders with the journal's labels: the same class names, plus page 1, the last page, gap items, aria labels and head rel prev/next, with links in the CMS's pagination form - with vue-seo-layer's seo.pagination.form 'path' the module registers //:page routes (journalPagedRoutes), and the listing pages read the page from the :page param or ?page (pageFromRoute) - the category pillar text renders on page 1 only, the description on every page; an h1 in it becomes h2 while the category row's content_h1_to_h2 is on (absent counts as on) --- .playground/app/app.vue | 9 +++++ .playground/nuxt.config.ts | 4 ++- app/assets/css/journal-base.css | 6 ++++ app/components/Journal/CategoryHeader.vue | 9 +++-- app/components/Journal/Pagination.vue | 42 ++++++++--------------- app/journal-pages/AuthorPage.vue | 8 +++-- app/journal-pages/CategoryPage.vue | 15 +++++--- app/journal-pages/PostIndexPage.vue | 12 ++++--- app/journal-pages/PostPage.vue | 4 ++- app/journal-pages/TagPage.vue | 8 +++-- app/utils/pagination.ts | 17 +++++++-- app/utils/routes.ts | 31 +++++++++++++++++ app/utils/types.ts | 6 ++++ app/utils/view.ts | 8 +++++ lib/journal-module.ts | 8 ++++- package.json | 2 +- testing/expect-acme-breadcrumbs-off.txt | 6 ++++ testing/expect-acme.txt | 22 ++++++++++++ testing/fixtures/acme/categories.json | 17 +++++++-- testing/fixtures/acme/seo/resolve.json | 23 +++++++++++++ tests/pagination.test.ts | 11 +++++- tests/routes.test.ts | 27 +++++++++++++++ 22 files changed, 239 insertions(+), 56 deletions(-) create mode 100644 testing/expect-acme-breadcrumbs-off.txt diff --git a/.playground/app/app.vue b/.playground/app/app.vue index fa578f0..39304b7 100644 --- a/.playground/app/app.vue +++ b/.playground/app/app.vue @@ -1,7 +1,16 @@ + +