Removed headers in the projects section.
This commit is contained in:
parent
406a8e28f1
commit
86652ec347
2 changed files with 3 additions and 25 deletions
|
@ -144,33 +144,12 @@ $router->get('/projects', function() use ($ctx) {
|
||||||
|
|
||||||
$sections = [
|
$sections = [
|
||||||
'projects' => [
|
'projects' => [
|
||||||
'title' => 'Active Projects',
|
'title' => 'Projects',
|
||||||
'desc' => 'Projects that I work on on a fairly regular basis.',
|
'desc' => '',
|
||||||
'items' => [],
|
'items' => $projects,
|
||||||
],
|
|
||||||
'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' => [],
|
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|
||||||
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', [
|
return $ctx->getTemplating()->render('projects', [
|
||||||
'sections' => $sections,
|
'sections' => $sections,
|
||||||
'languages' => new Languages($db),
|
'languages' => new Languages($db),
|
||||||
|
|
|
@ -10,7 +10,6 @@ $self->block('container', function($self) {
|
||||||
<div class="section-content">
|
<div class="section-content">
|
||||||
<div class="section-background"></div>
|
<div class="section-background"></div>
|
||||||
<h1><?=$section['title'];?></h1>
|
<h1><?=$section['title'];?></h1>
|
||||||
<p><?=$section['desc'];?></p>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue