diff --git a/index.php b/index.php index 2844007..f3fdbc1 100644 --- a/index.php +++ b/index.php @@ -2,9 +2,10 @@ use Basecamp\Models\Post; -$context = Timber::get_context(); -$context['post'] = new TimberPost(); -$context['posts'] = new Timber\PostQuery(); -$context['pagination'] = Timber::get_pagination($pagination_mid_size); +$context = Timber::get_context(); +$post = new TimberPost(); +$context['post'] = $post; +$context['posts'] = new Timber\PostQuery(); +$context['pagination'] = Timber::get_pagination($pagination_mid_size); Timber::render('index.twig', $context); diff --git a/resources/views/front-page.twig b/resources/views/front-page.twig index d5b2467..2f7f100 100644 --- a/resources/views/front-page.twig +++ b/resources/views/front-page.twig @@ -77,14 +77,18 @@ {% set post_thumb = TimberImage(post.thumbnail) %}