Update (ui)

This commit is contained in:
2023-11-20 10:28:09 +08:00
parent e754de0632
commit d17185641c
2 changed files with 8 additions and 8 deletions

View File

@@ -37,10 +37,10 @@ public function index(Request $request, $category_slug, $slug)
$content = Markdown::convert($post->body)->getContent(); $content = Markdown::convert($post->body)->getContent();
//dd($content); //dd($content);
$content = $this->injectTableOfContents($content); //$content = $this->injectTableOfContents($content);
$content = $this->injectBootstrapClasses($content); $content = $this->injectBootstrapClasses($content);
$content = $this->injectFeaturedImage($post, $content); //$content = $this->injectFeaturedImage($post, $content);
$content = $this->injectPublishDateAndAuthor($post, $content); //$content = $this->injectPublishDateAndAuthor($post, $content);
$post_description = $post->excerpt.' '.$post->title.' by FutureWalker.'; $post_description = $post->excerpt.' '.$post->title.' by FutureWalker.';
@@ -128,15 +128,15 @@ private function injectBootstrapClasses($content)
// Handle Headings // Handle Headings
$crawler->filter('h1')->each(function (Crawler $node) { $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) { $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) { $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 // Handle Paragraphs

View File

@@ -6,8 +6,8 @@
'launched_epoch' => '1695513600', // 24-09-2023 00:00:00 GMT +0 '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' => [ 'blacklist_keywords_serp' => [