Upgrade to Kirby 3
This commit is contained in:
parent
80004a968c
commit
03ab30b8c1
64 changed files with 524 additions and 683 deletions
15
index.php
15
index.php
|
@ -1,16 +1,5 @@
|
|||
<?php
|
||||
|
||||
define('DS', DIRECTORY_SEPARATOR);
|
||||
require 'kirby/bootstrap.php';
|
||||
|
||||
// load kirby
|
||||
require(__DIR__ . DS . 'kirby' . DS . 'bootstrap.php');
|
||||
|
||||
// check for a custom site.php
|
||||
if(file_exists(__DIR__ . DS . 'site.php')) {
|
||||
require(__DIR__ . DS . 'site.php');
|
||||
} else {
|
||||
$kirby = kirby();
|
||||
}
|
||||
|
||||
// render
|
||||
echo $kirby->launch();
|
||||
echo (new Kirby)->render();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue