diff --git a/src/AndairaSite.php b/src/AndairaSite.php index a8214ab..180c1a1 100644 --- a/src/AndairaSite.php +++ b/src/AndairaSite.php @@ -109,7 +109,7 @@ class AndairaSite extends Site { $ctx = [ 'posts' => Timber::get_posts( $args ) ]; - return Timber::fetch($template_name, $ctx); + return Timber::compile($template_name, $ctx); } public function posts_by_type($post_type, $numberposts=8, $template_name='posts_by_taxonomy.twig') @@ -123,7 +123,7 @@ class AndairaSite extends Site { 'posts' => Timber::get_posts( $args ), ]; - return Timber::fetch($template_name, $ctx); + return Timber::compile($template_name, $ctx); } public function posts_by_term($taxonomy_slug, $term_slug, $numberposts=8, $post_type='post', $template_name='posts_by_taxonomy.twig') @@ -144,7 +144,7 @@ class AndairaSite extends Site { 'taxonomy' => get_taxonomy($taxonomy_slug), 'term' => get_term($term_slug, $taxonomy_slug), ]; - return Timber::fetch($template_name, $ctx); + return Timber::compile($template_name, $ctx); }