From d17185641ca8e8a6d3b46f1c2a82f052c4825e83 Mon Sep 17 00:00:00 2001 From: Charles Teh Date: Mon, 20 Nov 2023 10:28:09 +0800 Subject: [PATCH] Update (ui) --- app/Http/Controllers/Front/FrontPostController.php | 12 ++++++------ config/platform/global.php | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/app/Http/Controllers/Front/FrontPostController.php b/app/Http/Controllers/Front/FrontPostController.php index 98db1be..b69d84d 100644 --- a/app/Http/Controllers/Front/FrontPostController.php +++ b/app/Http/Controllers/Front/FrontPostController.php @@ -37,10 +37,10 @@ public function index(Request $request, $category_slug, $slug) $content = Markdown::convert($post->body)->getContent(); //dd($content); - $content = $this->injectTableOfContents($content); + //$content = $this->injectTableOfContents($content); $content = $this->injectBootstrapClasses($content); - $content = $this->injectFeaturedImage($post, $content); - $content = $this->injectPublishDateAndAuthor($post, $content); + //$content = $this->injectFeaturedImage($post, $content); + //$content = $this->injectPublishDateAndAuthor($post, $content); $post_description = $post->excerpt.' '.$post->title.' by FutureWalker.'; @@ -128,15 +128,15 @@ private function injectBootstrapClasses($content) // Handle Headings $crawler->filter('h1')->each(function (Crawler $node) { - $node->getNode(0)->setAttribute('class', trim($node->attr('class').' display-6 fw-bolder mt-3 mb-2')); + $node->getNode(0)->setAttribute('class', trim($node->attr('class').' h4 fw-bolder mt-3 mb-2')); }); $crawler->filter('h2')->each(function (Crawler $node) { - $node->getNode(0)->setAttribute('class', trim($node->attr('class').' h4 mb-3')); + $node->getNode(0)->setAttribute('class', trim($node->attr('class').' h5 mb-2 fw-bolder font-family-roboto-condensed')); }); $crawler->filter('h3')->each(function (Crawler $node) { - $node->getNode(0)->setAttribute('class', trim($node->attr('class').' h6 mb-3')); + $node->getNode(0)->setAttribute('class', trim($node->attr('class').' h6 mb-2 fw-bolder font-family-roboto-condensed')); }); // Handle Paragraphs diff --git a/config/platform/global.php b/config/platform/global.php index c476ea2..49579e4 100644 --- a/config/platform/global.php +++ b/config/platform/global.php @@ -6,8 +6,8 @@ 'launched_epoch' => '1695513600', // 24-09-2023 00:00:00 GMT +0 - 'blacklist_domains_serp' => $paywalled_domains = [ - + 'blacklist_domains_serp' => [ + 'https://u.today' ], 'blacklist_keywords_serp' => [