fix date && isotope

This commit is contained in:
2020-07-07 12:50:56 +02:00
parent 051a6e3675
commit 875d1914b4
6 changed files with 78 additions and 46 deletions
+17
View File
@@ -0,0 +1,17 @@
<?php
/**
* template name: archive
*/
$context = Timber::context();
$context['term_page'] = new Timber\Term();
$args = array(
'post_type' => 'post',
'post_status'=>'publish',
);
$context['post'] = Timber::get_post();
$context['posts'] = Timber::get_posts( $args );
$context['terms'] = Timber::get_terms(array( 'taxonomy'=> 'category', 'hide_empty' => true, 'parent' => 0));
Timber::render('archive.twig', $context );