@extends($site->themeView('layout')) {{-- Nature theme: a garden magazine — one featured story, a reading column, seed-packet topics. --}} @section('content') @php $featured = $latestPosts->first(); $rest = $latestPosts->slice(1); @endphp

{{ $site->localized('home_heading') ?: $site->name }}

@if ($site->localized('tagline'))

{{ $site->localized('tagline') }}

@endif
@if ($featured)
@if ($featured->coverUrl()) {{ $featured->cover_alt ?? '' }} @else @endif

{{ __('theme.featured') }}@if ($featured->category) · {{ $featured->category->name }}@endif

{{ $featured->title }}

@if ($featured->excerpt)

{{ $featured->excerpt }}

@endif

{{ __('theme.latest') }}

{{ __('site.read_articles') }}
@endif @if ($categories->where('posts_count', '>', 0)->isNotEmpty())

{{ __('theme.categories_title') }}

@foreach ($categories->where('posts_count', '>', 0) as $category) {{-- "Seed packet" cards: tinted top, rounded body. --}} {{ $category->name }} {{ trans_choice('theme.articles_count', $category->posts_count, ['count' => $category->posts_count]) }} @endforeach
@endif @if ($rest->count() > 4)

{{ __('site.latest_articles') }}

@foreach ($rest->slice(4) as $post) @include($site->themeView('partials.post-card')) @endforeach
@endif @endsection