We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a176733 commit 5291518Copy full SHA for 5291518
site-root/home.php
@@ -1,5 +1,10 @@
1
<?php
2
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
+
8
// compile home page data
9
$now = new DateTime();
10
$pageData = array();
@@ -75,4 +80,4 @@ function($result) {
75
80
76
81
77
82
// render data against home template
78
-RequestHandler::respond('home', $pageData);
83
+RequestHandler::respond('home-classic', $pageData);
0 commit comments