index template should always pass post type when including content

This commit is contained in:
2017-07-09 07:13:43 -07:00
parent a83a10ce69
commit 949fa86c38

View File

@@ -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() !!}