add info footer
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user