Reorganised home and robots views

Extracted home view sidebar into own view.
Moved home and robot views into 'common' folder so that we only have
layouts in the top-level views folder.
This commit is contained in:
Dan Brown
2018-05-20 10:11:56 +01:00
parent 8df9dab80a
commit 63f96c1c6f
9 changed files with 71 additions and 107 deletions

View File

@ -60,7 +60,7 @@ class HomeController extends Controller
$view = 'home-custom';
}
return view($view, [
return view('common/' . $view, [
'activity' => $activity,
'recents' => $recents,
'recentlyUpdatedPages' => $recentlyUpdatedPages,
@ -150,7 +150,7 @@ class HomeController extends Controller
$allowRobots = $sitePublic;
}
return response()
->view('robots', ['allowRobots' => $allowRobots])
->view('common/robots', ['allowRobots' => $allowRobots])
->header('Content-Type', 'text/plain');
}