template/wordpress/index.php in edge_framework-1.3.1 vs template/wordpress/index.php in edge_framework-1.3.2

- old
+ new

@@ -1,14 +1,7 @@ <?php - $posts = Post::find(); -?> +$context = Timber::get_context(); +$context["posts"] = Timber::get_posts(); +$context["pagination"] = Timber::get_pagination(); -<div class="row"> - <div class="large-6 column large-centered"> - <?php if($posts->have_posts() ): while($posts->have_posts() ): $posts->the_post(); ?> +Timber::render("index.twig", $context); - <h1><?php the_title(); ?></h1> - <?php the_content(); ?> - - <?php endwhile; endif; ?> - </div> -</div> \ No newline at end of file