@php // $displayBlogSidebar=true → blog index (8/4 layout matching html/blog.html demo) // $displayBlogSidebar=false → category/tag/author archives (full-width 3-col grid) $displayBlogSidebar ??= true; $items = isset($posts) ? $posts : collect(); $gridSizing = $displayBlogSidebar ? 'sm-col-2' : 'lg-col-3 md-col-2 sm-col-2'; @endphp
@forelse ($items as $post) @include(Theme::getThemeNamespace('partials.blog.post-card'), ['post' => $post]) @empty

{{ __('No posts found.') }}

@endforelse @if ($items instanceof \Illuminate\Pagination\AbstractPaginator && $items->hasPages())
{!! $items->onEachSide(1)->links(Theme::getThemeNamespace('partials.blog-pagination')) !!}
@endif
@if ($displayBlogSidebar)
@include(Theme::getThemeNamespace('partials.blog.sidebar'))
@endif