Restructure portfolio to separate index and case study pages, extract projects array to shared data file
This commit is contained in:
@@ -64,7 +64,8 @@ require __DIR__ . '/includes/header.php';
|
||||
### Pages
|
||||
|
||||
- `index.php` — Homepage (hero, about, services, work CTA, contact)
|
||||
- `portfolio/index.php` — Portfolio index + Thompson Service Centre case study
|
||||
- `portfolio.php` — Portfolio index (project grid)
|
||||
- `portfolio/{slug}/index.php` — Individual case study pages
|
||||
- `404.php` — Custom error page
|
||||
|
||||
### CSS
|
||||
@@ -80,7 +81,7 @@ require __DIR__ . '/includes/header.php';
|
||||
|
||||
### Adding portfolio projects
|
||||
|
||||
Edit the `$projects` array in `portfolio/index.php` and add a corresponding `<article id="…">` case study block below it. Project screenshots go in `img/{project-slug}/`.
|
||||
Edit the `$projects` array in `portfolio.php` and add a corresponding `portfolio/{slug}/index.php` case study page (copy `portfolio/_template/`). Project screenshots go in `img/{project-slug}/`.
|
||||
|
||||
Case study image naming convention (see Thompson as reference):
|
||||
- `hero.png` — full-page screenshot
|
||||
|
||||
Reference in New Issue
Block a user