diff --git a/resources/views/index.blade.php b/resources/views/index.blade.php index 16c24cd..36841a5 100644 --- a/resources/views/index.blade.php +++ b/resources/views/index.blade.php @@ -1,37 +1,18 @@ @extends('layouts.app') @section('content') - @if($block_count === 0) -
-
-

{{ __('About Pressbooks', 'aldine')}}

-

{{ __('Pressbooks is easy-to-use book writing software that lets you create a book in all the formats you need to publish.', 'aldine')}}

-
-
- @elseif($block_count < 5) - @for($i = 0; $i < $block_count; $i++) -
-
- @php(dynamic_sidebar($home_blocks[$i])) -
-
- @endfor - @elseif($block_count === 5) -
- @for($i = 0; $i < 2; $i++) -
-
- @php(dynamic_sidebar($home_blocks[$i])) -
-
- @endfor + @include('partials.page-header') + + @if (!have_posts()) +
+ {{ __('Sorry, no results were found.', 'sage') }}
- @for($i = 2; $i < $block_count; $i++) -
-
- @php(dynamic_sidebar($home_blocks[$i])) -
-
- @endfor + {!! get_search_form(false) !!} @endif + + @while (have_posts()) @php(the_post()) + @include('partials.content-'.get_post_type()) + @endwhile + + {!! get_the_posts_navigation() !!} @endsection