diff --git a/app/Http/Controllers/PhotoController.php b/app/Http/Controllers/PhotoController.php
index 312343b..65066ac 100644
--- a/app/Http/Controllers/PhotoController.php
+++ b/app/Http/Controllers/PhotoController.php
@@ -3,6 +3,7 @@
namespace App\Http\Controllers;
use App\Models\Photo;
+use App\Models\Tag;
use Illuminate\Http\Request;
class PhotoController extends Controller
@@ -10,7 +11,8 @@ class PhotoController extends Controller
public function index()
{
return view('photos.index', [
- 'photos' => Photo::all()
+ 'photos' => Photo::all(),
+ 'tags' => Tag::limit(5)->get()
]);
}
}
diff --git a/resources/views/home.blade.php b/resources/views/home.blade.php
index 5e1d697..6155080 100644
--- a/resources/views/home.blade.php
+++ b/resources/views/home.blade.php
@@ -3,13 +3,13 @@
@section('content')
- @include('home.photo-partial', ['tags' => $tags])
+{{-- @include('home.photo-partial', ['tags' => $tags])--}}
@include('home.blog-partial')
@foreach($posts as $post)
-
{{$post->title}}
+
{{$post->title}}
@@ -37,11 +37,13 @@
-
@endforeach
+ @include('layouts.sidebar')
+
@endsection
diff --git a/resources/views/home/blog-partial.blade.php b/resources/views/home/blog-partial.blade.php
index 62e4bc0..c03add1 100644
--- a/resources/views/home/blog-partial.blade.php
+++ b/resources/views/home/blog-partial.blade.php
@@ -1,4 +1,4 @@
-A Blog Entry
+A Blog Entry
diff --git a/resources/views/home/photo-partial.blade.php b/resources/views/home/photo-partial.blade.php
index f73ffc2..5184ab2 100644
--- a/resources/views/home/photo-partial.blade.php
+++ b/resources/views/home/photo-partial.blade.php
@@ -25,7 +25,7 @@
-
diff --git a/resources/views/layouts/app.blade.php b/resources/views/layouts/app.blade.php
index 2f5c05d..94106d4 100644
--- a/resources/views/layouts/app.blade.php
+++ b/resources/views/layouts/app.blade.php
@@ -26,7 +26,7 @@
@yield('content')
- @include('layouts.sidebar')
+{{-- @include('layouts.sidebar')--}}
diff --git a/resources/views/layouts/sidebar.blade.php b/resources/views/layouts/sidebar.blade.php
index 5c71307..671a740 100644
--- a/resources/views/layouts/sidebar.blade.php
+++ b/resources/views/layouts/sidebar.blade.php
@@ -1,5 +1,15 @@
+
+
+
Recent Posts
+
+ - Something
+ - Other thing
+ - A photo, perhaps
+
+
+
Categories
diff --git a/resources/views/navbar.blade.php b/resources/views/navbar.blade.php
index dcec47c..4ba9165 100644
--- a/resources/views/navbar.blade.php
+++ b/resources/views/navbar.blade.php
@@ -19,57 +19,24 @@
diff --git a/routes/web.php b/routes/web.php
index 1bd7a16..9623ec1 100644
--- a/routes/web.php
+++ b/routes/web.php
@@ -1,6 +1,7 @@
name('home');
+Route::get('/photos', [PhotoController::class, 'index'])->name('photos');