diff --git a/app/Http/Controllers/Front/FrontListController.php b/app/Http/Controllers/Front/FrontListController.php index 421ac4a..b94da96 100644 --- a/app/Http/Controllers/Front/FrontListController.php +++ b/app/Http/Controllers/Front/FrontListController.php @@ -4,7 +4,9 @@ use App\Http\Controllers\Controller; use App\Models\Category; +use App\Models\HybridTopRssPostKeywords; use App\Models\RssPost; +use App\Models\RssPostKeyword; use Artesaos\SEOTools\Facades\SEOTools; use Illuminate\Http\Request; use JsonLd\Context; @@ -26,19 +28,38 @@ public function searchResults(Request $request, $query) $query = urldecode($query); + $rss_post_keyword = RssPostKeyword::where('value_lowercased', strtolower($query))->first(); + + if (!is_null($rss_post_keyword)) + { + $query = $rss_post_keyword->value; + } + $breadcrumbs = collect([ ['name' => 'Home', 'url' => route('front.home')], ['name' => 'News Bites', 'url' => route('front.all')], - ['name' => '#'.$query, 'url' => null], + ['name' => strtolower('#'.$query), 'url' => null], ]); - $title = 'Latest News about '.ucwords($query).' in FutureWalker'; + $title = "{$query} News Bites: Updated Hourly"; + + $top_rss_keywords = HybridTopRssPostKeywords::get(1, 5); + + $description = "Stay updated with " . $query; + + foreach ($top_rss_keywords as $rss_keyword) + { + $description .= ", " . $rss_keyword->value; + } + $description .= " and 1000+ other news topics with 1-minute news bites with FutureWalker."; + SEOTools::metatags(); SEOTools::twitter(); SEOTools::opengraph(); SEOTools::jsonLd(); SEOTools::setTitle($title, false); + SEOTools::setDescription($description); $rss_posts = RssPost::with('category', 'entities_keywords') ->where('status', 'published') @@ -73,13 +94,15 @@ public function index(Request $request) ['name' => 'News Bites', 'url' => null], // or you can set a route for Latest News if there's a specific one ]); - $title = 'Latest News Bites from FutureWalker'; + $title = '1-minute AI & Tech News Bites: Updated Hourly'; + $description = "Stay updated over 1000+ news topics summarised to 1-minute news bites with FutureWalker."; SEOTools::metatags(); SEOTools::twitter(); SEOTools::opengraph(); SEOTools::jsonLd(); SEOTools::setTitle($title, false); + SEOTools::setDescription($description); $rss_posts = RssPost::with('category', 'entities_keywords')->where('status', 'published') ->where('published_at', '<=', now()) @@ -120,13 +143,25 @@ public function category(Request $request, $category_slug) ['name' => $category->name, 'url' => null], ]); - $title = 'Latest News from FutureWalker'; + $title = 'AI & Tech ' . "$category->name" . ": Updated Hourly" ; + + $top_rss_keywords = HybridTopRssPostKeywords::get(1, 10); + + $description = "Stay updated with "; + + foreach ($top_rss_keywords as $rss_keyword) + { + $description .= ", " . $rss_keyword->value; + } + $description .= " and 1000+ other news " . strtolower($category->name) . " with 1-minute news bites with FutureWalker."; + SEOTools::metatags(); SEOTools::twitter(); SEOTools::opengraph(); SEOTools::jsonLd(); SEOTools::setTitle($title, false); + SEOTools::setDescription($description); $rss_posts = RssPost::with('category', 'entities_keywords')->where('status', 'published') ->where('category_id', $category->id) diff --git a/resources/views/front/layouts/partials/footer.blade.php b/resources/views/front/layouts/partials/footer.blade.php index e4a606c..e8d522b 100644 --- a/resources/views/front/layouts/partials/footer.blade.php +++ b/resources/views/front/layouts/partials/footer.blade.php @@ -10,7 +10,7 @@ class="nav-link px-2 text-body-secondary">Privacy - + {{-- --}}

© {{ date('Y') }} FutureWalker. All rights reserved.

diff --git a/resources/views/front/partials/sidebar.blade.php b/resources/views/front/partials/sidebar.blade.php index 71f0c7e..9d814e5 100644 --- a/resources/views/front/partials/sidebar.blade.php +++ b/resources/views/front/partials/sidebar.blade.php @@ -20,3 +20,7 @@ --}} + +
+AI & tech news syndication site built by @charlestehio. All trademarks are the property of their respective owners. +
diff --git a/resources/views/front/welcome.blade.php b/resources/views/front/welcome.blade.php index f02cebe..c251eda 100644 --- a/resources/views/front/welcome.blade.php +++ b/resources/views/front/welcome.blade.php @@ -19,7 +19,7 @@
-

Monitoring top tags for the past 24 hours

+

📡 Monitoring top tags for the past 24 hours

@foreach ($top_rss_keywords as $rss_keyword)