From 264635741f45e81dbdd736fcf57d44b1df778ede Mon Sep 17 00:00:00 2001 From: Ned Zimmerman Date: Sat, 26 Aug 2017 10:52:31 -0300 Subject: [PATCH] Restore index. --- resources/views/index.blade.php | 43 +++++++++------------------------ 1 file changed, 12 insertions(+), 31 deletions(-) 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