add tab options
This commit is contained in:
@@ -2,9 +2,15 @@
|
||||
/**
|
||||
* template name: Accueil
|
||||
*/
|
||||
use Timber\Post;
|
||||
use Timber\Timber;
|
||||
|
||||
$context = Timber::context();
|
||||
$context = Timber::get_context();
|
||||
$post = new Post();
|
||||
$context['post'] = $post;
|
||||
|
||||
$timber_post = new Timber\Post();
|
||||
$context['post'] = $timber_post;
|
||||
Timber::render( array( 'page-' . $timber_post->post_name . '.twig', 'accueil.twig' ), $context );
|
||||
$args = 'post_type=post&numberposts=3&orderby=date';
|
||||
|
||||
$context['posts'] = Timber::get_posts( $args );
|
||||
|
||||
Timber::render(['accueil.twig'], $context);
|
||||
|
||||
Reference in New Issue
Block a user