This commit is contained in:
2020-05-27 18:00:19 +02:00
parent 270ed287db
commit a408984d11
14 changed files with 43 additions and 96 deletions
+3 -5
View File
@@ -1,11 +1,9 @@
<?php
$timber_post = new Timber\Post();
$context['posts'] = new Timber\PostQuery();
$context['post'] = $timber_post;
$context = Timber::context();
$timber_post = new Timber\Post();
$context['posts'] = new Timber\PostQuery();
$args = array(
'post_type' => 'post',
@@ -13,4 +11,4 @@ $args = array(
$context['posts'] = Timber::get_posts( $args );
Timber::render( array( 'agenda.twig' ), $context );
Timber::render( ['agenda.twig'] , $context );