diff options
Diffstat (limited to 'app')
| -rw-r--r-- | app/Http/Controllers/IndexController.php | 6 | ||||
| -rw-r--r-- | app/Libraries/Helper.php | 1 |
2 files changed, 6 insertions, 1 deletions
diff --git a/app/Http/Controllers/IndexController.php b/app/Http/Controllers/IndexController.php index f24d1ad..62bec0e 100644 --- a/app/Http/Controllers/IndexController.php +++ b/app/Http/Controllers/IndexController.php @@ -58,7 +58,11 @@ class IndexController extends Controller public function show( $id ) { $articles = Article::where('id', $id); $articles = $articles->simplePaginate(10); - return view('list', ["articles" => $articles, "count" => 1]); + $page_title = ""; + foreach($articles as $a) { + $page_title = $a->title; + } + return view('list', ["articles" => $articles, "count" => 1, "page_title" => $page_title]); } public function search(Request $request) { diff --git a/app/Libraries/Helper.php b/app/Libraries/Helper.php index 026abef..41d26e5 100644 --- a/app/Libraries/Helper.php +++ b/app/Libraries/Helper.php @@ -69,6 +69,7 @@ class Helper { { $desc = ($post->excerpt_html); + $categories = null; if ( "mastodon" == $title ) { |
