From d37cfdb8e891acad07787ce80300518989e28833 Mon Sep 17 00:00:00 2001 From: n3storm Date: Tue, 29 Jul 2025 17:42:15 +0000 Subject: [PATCH] cambio de fetch por compile --- src/AndairaSite.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); }