Even more simplification :D
This commit is contained in:
parent
097a6fe1fc
commit
016a964252
2 changed files with 3 additions and 5 deletions
|
@ -24,9 +24,7 @@ class NotesController extends Controller
|
|||
$query->where('type', 'in-reply-to');
|
||||
}])->paginate(10);
|
||||
|
||||
$homepage = ($request->path() == '/');
|
||||
|
||||
return view('notes.index', compact('notes', 'homepage'));
|
||||
return view('notes.index', compact('notes'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -18,6 +18,8 @@ Notes «
|
|||
{!! $notes->render() !!}
|
||||
@stop
|
||||
|
||||
@if (Request::path() == '/')@include('templates.bio')@endif
|
||||
|
||||
@section('scripts')
|
||||
|
||||
<script defer src="/assets/js/links.js"></script>
|
||||
|
@ -27,5 +29,3 @@ Notes «
|
|||
<script defer src="/assets/prism/prism.js"></script>
|
||||
<link rel="stylesheet" href="/assets/prism/prism.css">
|
||||
@stop
|
||||
|
||||
@if ($homepage === true)@include('templates.bio')@endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue