@include('partials.head')
<body>
@include('partials.header')
<div id="page">
<main id="content">
        <h1 class="sr-only">{{ $siteName }}</h1>
    @if(session('success'))
        <div class="alert alert-success">{{ session('success') }}</div>
    @endif
    @if(session('error'))
        <div class="alert alert-error">{{ session('error') }}</div>
    @endif

    @forelse($posts as $post)
        @include('partials.post-card', ['post' => $post])
    @empty
        <div class="empty">暂无文章</div>
    @endforelse

    @include('partials.pagination', ['paginator' => $posts])
</main>
@include('partials.sidebar')
</div>{{-- #page --}}
@include('partials.footer')
@stack('theme:body_end')
</body>
</html>
