diff --git a/public/index.php b/public/index.php index f407db4..d75d83e 100644 --- a/public/index.php +++ b/public/index.php @@ -144,33 +144,12 @@ $router->get('/projects', function() use ($ctx) { $sections = [ 'projects' => [ - 'title' => 'Active Projects', - 'desc' => 'Projects that I work on on a fairly regular basis.', - 'items' => [], - ], - 'tools' => [ - 'title' => 'Tools', - 'desc' => 'Personal quality of life tools that I update when I need something new from them.', - 'items' => [], - ], - 'archives' => [ - 'title' => 'Archived Projects', - 'desc' => 'Past projects that I no longer work on.', - 'items' => [], + 'title' => 'Projects', + 'desc' => '', + 'items' => $projects, ], ]; - foreach($projects as $project) { - if($project->isArchived()) - $sections['archives']['items'][] = $project; - else { - if($project->isTool()) - $sections['tools']['items'][] = $project; - else - $sections['projects']['items'][] = $project; - } - } - return $ctx->getTemplating()->render('projects', [ 'sections' => $sections, 'languages' => new Languages($db), diff --git a/tpl/projects.php b/tpl/projects.php index 58fc0fd..329f6fd 100644 --- a/tpl/projects.php +++ b/tpl/projects.php @@ -10,7 +10,6 @@ $self->block('container', function($self) {

-