Blade for the win

I have never really fully gotten on with Antlers, and whilst this site is pretty basic I thought I would shift it over to Blade properly now.

I've done it using Blade components rather than directives, but for the most part it's pretty much just swapping files around and a bit of reverting back to $page->title sort of thing (rather than page:title although that's a bad example as in Antlers it would usually just be title, anyway)

I am not doing anything fancy with the components and they could all just be single 'view' components to be honest, but I thought I would do the index and show as full components as it's likely that I will want to do something more on them in the future, we'll see.

With the layout.blade.php file I had to add some cascade to get the site/page variables passed up to it, so this:

@cascade([
    'site',
    'page'
])

sits just in front of the base HTML in the layout, then there is no need to pass any attributes to it when you wrap other components. It also has just the one $slot (currently anyway) as it just the boilerplate that each page needs.

I then have a 'blog' folder with blog, show and card components in there. The blog is just the index and means that I can refer to that as <x-blog> in the markup, the show is the main single blog page and the card one is what used to be an Antlers partial.