src/pages/ codebase small, legible, and easy to maintain.
Squeditor provides an elegant Data Layer configuration model specifically for this purpose.
Global Site Configuration
Thesrc/config/site-config.php file operates as your global configuration state. It is inherently loaded via the master base.php template. Any configuration set in $site is instantaneously available across all files.
site-config.php
src/template-parts/header.php, the $site variable seamlessly integrates dynamic navigation mapping.
header.php
Isolated Data Loops
To prevent large.php page files from becoming overly complicated to read, declare repetitive item sets (like grids, team bios, or portfolios) as standard PHP associative arrays within the src/data/ directory.
Declaring Data Arrays
Example: src/data/team.php
team.php
src/pages/about.php
about.php