Use hyphen in view paths as delimiter for fallback views

This commit is contained in:
QWp6t
2016-12-08 15:22:17 -08:00
parent 99752388bc
commit 7f7ce45ed4
4 changed files with 60 additions and 2 deletions

View File

@@ -11,7 +11,7 @@
@endif
@while (have_posts()) @php the_post() @endphp
@include ('partials.content')
@include ('partials.content-'.(get_post_type() !== 'post' ? get_post_type() : get_post_format()))
@endwhile
{!! get_the_posts_navigation() !!}