Add (nav): share button

This commit is contained in:
2023-11-23 15:03:45 +08:00
parent 8d9fb190ef
commit a8d295dae9
20 changed files with 206 additions and 58 deletions

View File

@@ -30,9 +30,8 @@ public function searchResults(Request $request, $query)
$rss_post_keyword = RssPostKeyword::where('value_lowercased', strtolower($query))->first();
if (!is_null($rss_post_keyword))
{
$query = $rss_post_keyword->value;
if (! is_null($rss_post_keyword)) {
$query = $rss_post_keyword->value;
}
$breadcrumbs = collect([
@@ -45,14 +44,12 @@ public function searchResults(Request $request, $query)
$top_rss_keywords = HybridTopRssPostKeywords::get(1, 5);
$description = "Stay updated with " . $query;
$description = 'Stay updated with '.$query;
foreach ($top_rss_keywords as $rss_keyword)
{
$description .= ", " . $rss_keyword->value;
foreach ($top_rss_keywords as $rss_keyword) {
$description .= ', '.$rss_keyword->value;
}
$description .= " and 1000+ other news topics with 1-minute news bites with FutureWalker.";
$description .= ' and 1000+ other news topics with 1-minute news bites with FutureWalker.';
SEOTools::metatags();
SEOTools::twitter();
@@ -95,7 +92,7 @@ public function index(Request $request)
]);
$title = '1-minute AI & Tech News Bites: Updated Hourly';
$description = "Stay updated over 1000+ news topics summarised to 1-minute news bites with FutureWalker.";
$description = 'Stay updated over 1000+ news topics summarised to 1-minute news bites with FutureWalker.';
SEOTools::metatags();
SEOTools::twitter();
@@ -143,18 +140,16 @@ public function category(Request $request, $category_slug)
['name' => $category->name, 'url' => null],
]);
$title = 'AI & Tech ' . "$category->name" . ": Updated Hourly" ;
$title = 'AI & Tech '."$category->name".': Updated Hourly';
$top_rss_keywords = HybridTopRssPostKeywords::get(1, 10);
$description = "Stay updated with ";
$description = 'Stay updated with ';
foreach ($top_rss_keywords as $rss_keyword)
{
$description .= ", " . $rss_keyword->value;
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.";
$description .= ' and 1000+ other news '.strtolower($category->name).' with 1-minute news bites with FutureWalker.';
SEOTools::metatags();
SEOTools::twitter();