cambio de fetch por compile

This commit is contained in:
2025-07-29 17:42:15 +00:00
parent 0c10891b6c
commit d37cfdb8e8

View File

@@ -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);
}