From 94b172f85c1b992f3a8eda4722f33c2e5186a5df Mon Sep 17 00:00:00 2001 From: Raquelle Fahle Date: Sun, 11 Jun 2017 19:43:20 -0500 Subject: [PATCH 1/2] Remove post format reference in template call --- 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 f91575c..c532f3f 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() : get_post_format())) + @include ('partials.content-'.(get_post_type() !== 'post' ?: get_post_type())) @endwhile {!! get_the_posts_navigation() !!} From 870306960724536ab9b1272e3a1369c92a37c606 Mon Sep 17 00:00:00 2001 From: Raquelle Fahle Date: Sun, 11 Jun 2017 20:59:49 -0500 Subject: [PATCH 2/2] Update operator for template call --- 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 c532f3f..3e0a8d2 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() === 'post' ?: get_post_type())) @endwhile {!! get_the_posts_navigation() !!}