Update (single post): change toc position
This commit is contained in:
@@ -25,10 +25,10 @@ public function index(Request $request, $slug)
|
|||||||
$content = Markdown::convert($post->body)->getContent();
|
$content = Markdown::convert($post->body)->getContent();
|
||||||
|
|
||||||
//dd($content);
|
//dd($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);
|
||||||
$content = $this->injectTableOfContents($content);
|
|
||||||
|
|
||||||
$post_description = $post->excerpt.' '.$post->title.' by EchoScoop.';
|
$post_description = $post->excerpt.' '.$post->title.' by EchoScoop.';
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user