Bootstrap 5 start page
+Bootstrap 5 start page
Start by dragging components to page or double click to edit text
diff --git a/__pycache__/main.cpython-313.pyc b/__pycache__/main.cpython-313.pyc index bf25bc9..66232d3 100644 Binary files a/__pycache__/main.cpython-313.pyc and b/__pycache__/main.cpython-313.pyc differ diff --git a/main.py b/main.py index 1207a23..7260303 100644 --- a/main.py +++ b/main.py @@ -167,6 +167,8 @@ def _normalize_page_tree(slug: str, tree: dict[str, Any]) -> dict[str, Any]: "show_in_nav": bool(item.get("show_in_nav", True)), "is_homepage": bool(item.get("is_homepage", False)), "requires_password": bool(item.get("requires_password", False)), + "has_header": item.get("has_header") is not False, + "has_footer": bool(item.get("has_footer", False)), }) elif item_type == "folder": name = item.get("name") @@ -194,6 +196,8 @@ def _normalize_page_tree(slug: str, tree: dict[str, Any]) -> dict[str, Any]: "show_in_nav": True, "is_homepage": rel == "index.html", "requires_password": False, + "has_header": True, + "has_footer": False, }) return normalized diff --git a/static/Vvvebjs/new-page-blank-template.html b/static/Vvvebjs/new-page-blank-template.html index 8821b1c..b065dfb 100644 --- a/static/Vvvebjs/new-page-blank-template.html +++ b/static/Vvvebjs/new-page-blank-template.html @@ -20,14 +20,31 @@
+This header is editable in the editor.
+Start by dragging components to page or double click to edit text