From 949fa86c38f8bf9f52b2085fe94ae43a2085eeeb Mon Sep 17 00:00:00 2001 From: Date: Sun, 9 Jul 2017 07:13:43 -0700 Subject: [PATCH] index template should always pass post type when including content --- resources/views/index.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/views/index.blade.php b/resources/views/index.blade.php index 3e0a8d2..36841a5 100644 --- a/resources/views/index.blade.php +++ b/resources/views/index.blade.php @@ -11,7 +11,7 @@ @endif @while (have_posts()) @php(the_post()) - @include ('partials.content-'.(get_post_type() === 'post' ?: get_post_type())) + @include('partials.content-'.get_post_type()) @endwhile {!! get_the_posts_navigation() !!}