mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-05-28 19:06:39 +08:00
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:
@ -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');
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user