Skip to content

Commit

Permalink
index template should always pass post type when including content
Browse files Browse the repository at this point in the history
  • Loading branch information
QWp6t committed Jul 9, 2017
1 parent a83a10c commit 949fa86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/views/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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() !!}
Expand Down

0 comments on commit 949fa86

Please sign in to comment.