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');
|
$query->where('type', 'in-reply-to');
|
||||||
}])->paginate(10);
|
}])->paginate(10);
|
||||||
|
|
||||||
$homepage = ($request->path() == '/');
|
return view('notes.index', compact('notes'));
|
||||||
|
|
||||||
return view('notes.index', compact('notes', 'homepage'));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -18,6 +18,8 @@ Notes «
|
||||||
{!! $notes->render() !!}
|
{!! $notes->render() !!}
|
||||||
@stop
|
@stop
|
||||||
|
|
||||||
|
@if (Request::path() == '/')@include('templates.bio')@endif
|
||||||
|
|
||||||
@section('scripts')
|
@section('scripts')
|
||||||
|
|
||||||
<script defer src="/assets/js/links.js"></script>
|
<script defer src="/assets/js/links.js"></script>
|
||||||
|
@ -27,5 +29,3 @@ Notes «
|
||||||
<script defer src="/assets/prism/prism.js"></script>
|
<script defer src="/assets/prism/prism.js"></script>
|
||||||
<link rel="stylesheet" href="/assets/prism/prism.css">
|
<link rel="stylesheet" href="/assets/prism/prism.css">
|
||||||
@stop
|
@stop
|
||||||
|
|
||||||
@if ($homepage === true)@include('templates.bio')@endif
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue