diff options
| author | David T. Sadler <davidtsadler@googlemail.com> | 2020-02-17 19:59:15 +0000 |
|---|---|---|
| committer | David T. Sadler <davidtsadler@googlemail.com> | 2020-02-17 19:59:15 +0000 |
| commit | 498913806182905cc0c14bd12a61f9af26fa16b4 (patch) | |
| tree | 0c36a6df72900c184e900b274bad14aa5114fc5d /source/index.blade.php | |
| parent | 12b052b1f480c5a95acd1477e28ce76f84ff7932 (diff) | |
Switch over to Jigsaw
Diffstat (limited to 'source/index.blade.php')
| -rw-r--r-- | source/index.blade.php | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/source/index.blade.php b/source/index.blade.php new file mode 100644 index 0000000..2534ee0 --- /dev/null +++ b/source/index.blade.php @@ -0,0 +1,51 @@ +@extends('_layouts.master') + +@section('body') + @foreach ($posts->where('featured', true) as $featuredPost) + <div class="w-full mb-6"> + @if ($featuredPost->cover_image) + <img src="{{ $featuredPost->cover_image }}" alt="{{ $featuredPost->title }} cover image" class="mb-6"> + @endif + + <p class="text-gray-700 font-medium my-2"> + {{ $featuredPost->getDate()->format('F j, Y') }} + </p> + + <h2 class="text-3xl mt-0"> + <a href="{{ $featuredPost->getUrl() }}" title="Read {{ $featuredPost->title }}" class="text-gray-900 font-extrabold"> + {{ $featuredPost->title }} + </a> + </h2> + + <p class="mt-0 mb-4">{!! $featuredPost->getExcerpt() !!}</p> + + <a href="{{ $featuredPost->getUrl() }}" title="Read - {{ $featuredPost->title }}" class="uppercase tracking-wide mb-4"> + Read + </a> + </div> + + @if (! $loop->last) + <hr class="border-b my-6"> + @endif + @endforeach + + @include('_components.newsletter-signup') + + @foreach ($posts->where('featured', false)->take(6)->chunk(2) as $row) + <div class="flex flex-col md:flex-row md:-mx-6"> + @foreach ($row as $post) + <div class="w-full md:w-1/2 md:mx-6"> + @include('_components.post-preview-inline') + </div> + + @if (! $loop->last) + <hr class="block md:hidden w-full border-b mt-2 mb-6"> + @endif + @endforeach + </div> + + @if (! $loop->last) + <hr class="w-full border-b mt-2 mb-6"> + @endif + @endforeach +@stop |
