Removed headers in the projects section.

This commit is contained in:
flash 2023-05-28 18:46:56 +00:00
parent 406a8e28f1
commit 86652ec347
2 changed files with 3 additions and 25 deletions

View file

@ -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),

View file

@ -10,7 +10,6 @@ $self->block('container', function($self) {
<div class="section-content">
<div class="section-background"></div>
<h1><?=$section['title'];?></h1>
<p><?=$section['desc'];?></p>
</div>
</div>