Skip to content

Commit 5291518

Browse files
feat: expose classic homepage
1 parent a176733 commit 5291518

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

site-root/home.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
<?php
22

3+
// short circuit original handler for new static homepage
4+
if (empty(Site::$pathStack[0]) || Site::$pathStack[0] != 'classic') {
5+
return RequestHandler::respond('home');
6+
}
7+
38
// compile home page data
49
$now = new DateTime();
510
$pageData = array();
@@ -75,4 +80,4 @@ function($result) {
7580

7681

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

0 commit comments

Comments
 (0)