Skip to content

Commit

Permalink
feat: expose classic homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
themightychris committed Jun 25, 2024
1 parent a176733 commit 5291518
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion site-root/home.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
<?php

// short circuit original handler for new static homepage
if (empty(Site::$pathStack[0]) || Site::$pathStack[0] != 'classic') {
return RequestHandler::respond('home');
}

// compile home page data
$now = new DateTime();
$pageData = array();
Expand Down Expand Up @@ -75,4 +80,4 @@ function($result) {


// render data against home template
RequestHandler::respond('home', $pageData);
RequestHandler::respond('home-classic', $pageData);

0 comments on commit 5291518

Please sign in to comment.