From 40819d76cfca3fd41de8cbc0451e547da0f665a5 Mon Sep 17 00:00:00 2001 From: flashwave Date: Tue, 26 Mar 2024 20:43:32 +0000 Subject: [PATCH] Removed old wip --- src/Blog/BlogRoutes.php | 43 ----------------------------------------- src/MakaiContext.php | 1 - 2 files changed, 44 deletions(-) delete mode 100644 src/Blog/BlogRoutes.php diff --git a/src/Blog/BlogRoutes.php b/src/Blog/BlogRoutes.php deleted file mode 100644 index a4b5236..0000000 --- a/src/Blog/BlogRoutes.php +++ /dev/null @@ -1,43 +0,0 @@ -projects->getProjects( - featuredOnly: true, - deleted: false, - take: 3, - random: true, - ); - - $projects = []; - foreach($projectInfos as $projectInfo) - $projects[] = [ - 'info' => $projectInfo, - 'colour' => $projectInfo->hasColour() ? $projectInfo->getColour() : $this->projects->getProjectColour($projectInfo), - ]; - - $contacts = $this->contacts->getContacts( - homePageOnly: true, - take: 3, - ); - - return $this->templating->render('dev/index', [ - 'projects' => $projects, - 'contacts' => $contacts, - ]); - } -} diff --git a/src/MakaiContext.php b/src/MakaiContext.php index 7606e86..bf83e3d 100644 --- a/src/MakaiContext.php +++ b/src/MakaiContext.php @@ -94,7 +94,6 @@ final class MakaiContext { $routingCtx->register(new DeveloperRoutes($this->templating, $this->contacts, $this->projects)); $routingCtx->register(new AssetsRoutes($this->siteInfo)); - $routingCtx->register(new Blog\BlogRoutes($this->templating, $this->contacts, $this->projects)); $routingCtx->register(new Whois\WhoisRoutes($this->templating, $this->csrfp)); $routingCtx->register(new SSHKeys\SSHKeysRoutes($this->sshKeys)); $routingCtx->register(new Tools\AsciiRoutes($this->templating));