diff --git a/README.md b/README.md index 5ddd27a..8510446 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ A Nuxt 4 layer that renders a menu of the SummerCMS menu plugin as an accessible site navigation. ```bash -pnpm add git+https://git.golem15.com/golem15/vue-menu-layer.git#v0.2.0 +pnpm add git+https://git.golem15.com/golem15/vue-menu-layer.git#v0.5.0 ``` ## Overview @@ -81,7 +81,7 @@ The purge route `POST /api/__site__/cache/purge` that the SummerCMS backend call - The layer extends vue-seo-layer. Nothing is needed in the app's `extends`, but every page now resolves through the SEO plugin (`GET /_seo/api/v1/resolve`) and takes its head from the answer; set `NUXT_SEO_API_BASE` when the backend is not on `http://127.0.0.1:8096`, or `seo: { cms: false }` for a site without the SEO plugin. - `server/api/__site__/cache/purge.post.ts`, `server/lib/siteCachePurge.ts` and `server/plugins/site-cache-purge.ts` are removed from this layer: the same route, library and plugin come from vue-seo-layer, with the same environment variables. An app that imported `server/lib/siteCachePurge.ts` from this layer imports it from vue-seo-layer. -- An app without pages (only `app.vue`) sets `seo: { htmlSitemap: false }`: otherwise the SEO layer's HTML sitemap pages are its only routes, which turns the router on and makes every other path answer 404. +- **HTML sitemap pages.** The layer brings vue-seo-layer's HTML sitemap pages (pl `/mapa-strony`, en `/sitemap` by default, set in `seo.htmlSitemap.paths`). An app that renders its pages through a root catch-all (`pages/[...slug].vue`, as with the pages plugin) gets none, so a CMS page at such a path is not shadowed, unless it sets `seo.htmlSitemap.overCatchAll: true`; an app with its own page at such a path keeps its page; `seo: { htmlSitemap: false }` turns them off. An app without pages of its own (only `app.vue`) gets none and needs no setting. ### Upgrading from 0.3 diff --git a/package.json b/package.json index fad0fee..0f023f6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vue-menu-layer", - "version": "0.4.0", + "version": "0.5.0", "private": true, "type": "module", "main": "./nuxt.config.ts",