From c8c2f66c05e2ee3e27b991db87f69818d131b292 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Chopin?= Date: Wed, 2 Sep 2026 17:17:59 +0200 Subject: [PATCH 1/2] feat: add support for page layout within navigation --- app/app.vue | 24 +++++++- app/components/docs/DocsAsideMobileBar.vue | 5 +- .../layouts/LayoutsDocs.vue} | 0 app/components/layouts/LayoutsPage.vue | 7 +++ app/pages/[...slug].vue | 3 +- app/utils/navigation.ts | 29 +++++++++ playground/app/app.config.ts | 1 + playground/content/2.writing/5.navigation.md | 11 ++++ playground/content/page.md | 23 ++++++++ playground/content/pages/.navigation.yml | 1 + playground/content/pages/test.md | 21 +++++++ test/navigation.test.ts | 59 ++++++++++++++++++- 12 files changed, 178 insertions(+), 6 deletions(-) rename app/{layouts/docs.vue => components/layouts/LayoutsDocs.vue} (100%) create mode 100644 app/components/layouts/LayoutsPage.vue create mode 100644 playground/content/page.md create mode 100644 playground/content/pages/.navigation.yml create mode 100644 playground/content/pages/test.md diff --git a/app/app.vue b/app/app.vue index 62ef764..a508c15 100644 --- a/app/app.vue +++ b/app/app.vue @@ -1,10 +1,12 @@