diff --git a/app/Http/Controllers/TracksController.php b/app/Http/Controllers/TracksController.php index ff42d6cf..8c744383 100644 --- a/app/Http/Controllers/TracksController.php +++ b/app/Http/Controllers/TracksController.php @@ -88,7 +88,7 @@ class TracksController extends Controller return Redirect::action('TracksController@getTrack', [$id, $track->slug]); } - return View::make('tracks.show'); + return View::make('tracks.show', ['track' => $track]); } public function getEdit($id, $slug) diff --git a/resources/assets/styles/content.less b/resources/assets/styles/content.less index 0b461768..1b8988cc 100644 --- a/resources/assets/styles/content.less +++ b/resources/assets/styles/content.less @@ -145,6 +145,7 @@ &.artist-details { > header { padding: 15px; + margin: -10px -10px 10px; > img { width: 150px; diff --git a/resources/assets/styles/layout.less b/resources/assets/styles/layout.less index f432797e..4ec7f9eb 100644 --- a/resources/assets/styles/layout.less +++ b/resources/assets/styles/layout.less @@ -25,7 +25,7 @@ html, body { html body { height: 100%; - background: #444; + background: #fff; font-family: "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; padding: 0px !important; overflow-x: hidden; diff --git a/resources/views/shared/_layout.blade.php b/resources/views/shared/_layout.blade.php index 2903a7c8..cd4c335b 100644 --- a/resources/views/shared/_layout.blade.php +++ b/resources/views/shared/_layout.blade.php @@ -19,13 +19,13 @@
-This page should be what search engines see
+@section('title'){{ $track->title }} - {{ $track->user->display_name }} | @endsection +@section('description'){{ str_limit($track->description, $limit = 200, $end = '...') }}@endsection + +@section('metadata') + + + + + + + + + + + + + + + + + + + + + + + +@endsection + +@section('app_content') +{{ $track->description }}
+