In this episode, we finally hook up our blog to show individual posts! We start by grabbing the correct post and setting up a new Blade view (show.blade.php
). Using the power of Tailwind Typography, styling becomes a breeze—we add some nice typography classes and lay out the blog title, teaser, author, and publish date right in the template.
After that, we move on to displaying the actual blog content. We drop in some sample Markdown content (which you can grab from the GitHub repo if you want!), and see how it renders—including code snippets with syntax highlighting thanks to our Markdown rendering. You’ll also see how easy it is to switch out the content for more realistic data, and we even test updating a post to include Markdown such as bold text, just to check how it looks.
By the end of the episode, you’ll be able to click on a blog post, view it in full, and see all its content nicely formatted. Plus, you’ll notice how adding new posts in Markdown is now super straightforward!