Moved the main site pages into folders for better project structure

This commit is contained in:
Gregory Ballantine 2016-11-28 18:10:55 -05:00
parent 1c9a802a3c
commit b46551625d
12 changed files with 6 additions and 6 deletions

View File

@ -2,6 +2,6 @@
$app->get('/about', function() use($app) {
$app->render('about.twig');
$app->render('pages/about.twig');
})->name('about');

View File

@ -2,6 +2,6 @@
$app->get('/contact', function() use($app) {
$app->render('contact.twig');
$app->render('pages/contact.twig');
})->name('contact');

View File

@ -2,6 +2,6 @@
$app->get('/home', function() use($app) {
$app->render('home.twig');
$app->render('pages/home.twig');
})->name('home');

View File

@ -6,7 +6,7 @@ $app->get('/music1', function() use($app) {
$albums = $app->album->all()->sortByDesc('release_date')->values()->all();
$songs = $albums[0]->songs;
$app->render('music1.twig', [
$app->render('pages/music1.twig', [
'albums' => $albums,
'songs' => $songs,
]);
@ -19,7 +19,7 @@ $app->get('/music2', function() use($app) {
$albums = $app->album->all()->sortByDesc('release_date')->values()->all();
$songs = $albums[0]->songs;
$app->render('music2.twig', [
$app->render('pages/music2.twig', [
'albums' => $albums,
'songs' => $songs,
]);

View File

@ -10,7 +10,7 @@ $app->get('/shows', function() use($app) {
$show->time = date('H:i', strtotime($show->datetime));
}
$app->render('shows.twig', [
$app->render('pages/shows.twig', [
'shows' => $shows,
]);