@uniweb/core 0.2.2 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/website.js +4 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniweb/core",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Core classes for the Uniweb platform - Uniweb, Website, Page, Block",
5
5
  "type": "module",
6
6
  "exports": {
package/src/website.js CHANGED
@@ -756,6 +756,10 @@ export default class Website {
756
756
  // Always exclude special pages (header/footer are already separated)
757
757
  if (page.route.startsWith('/@')) return false
758
758
 
759
+ // Always exclude dynamic route template pages (e.g., /blog/:slug)
760
+ // These are templates for generating pages, not actual navigable pages
761
+ if (page.route.includes(':')) return false
762
+
759
763
  // Check visibility based on navigation type
760
764
  if (!includeHidden) {
761
765
  if (page.hidden) return false