@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.
- package/package.json +1 -1
- package/src/website.js +4 -0
package/package.json
CHANGED
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
|