From 86652ec347dc2ec677949902e39cf903fb1d8c6d Mon Sep 17 00:00:00 2001 From: flashwave Date: Sun, 28 May 2023 18:46:56 +0000 Subject: [PATCH] Removed headers in the projects section. --- public/index.php | 27 +++------------------------ tpl/projects.php | 1 - 2 files changed, 3 insertions(+), 25 deletions(-) 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) {

-