add info footer

This commit is contained in:
2020-05-27 11:08:34 +02:00
parent 270ed287db
commit 192ecc579e
9 changed files with 31 additions and 47 deletions
+3 -3
View File
@@ -15,9 +15,9 @@
$context = Timber::context();
$context['posts'] = new Timber\PostQuery();
$context['foo'] = 'bar';
$templates = array( 'index.twig' );
$templates = array( 'base.twig' );
if ( is_home() ) {
array_unshift( $templates, 'front-page.twig', 'home.twig' );
array_unshift( $templates, 'front-page.twig', 'accueil.twig' );
}
Timber::render( $templates, $context );