add btn more

This commit is contained in:
Chloe Listrat 2020-05-27 18:49:44 +02:00
parent 8ec1fce306
commit c8b91521ad
7 changed files with 9 additions and 9 deletions

View File

@ -13,4 +13,4 @@ $args = 'post_type=post&numberposts=3&orderby=date';
$context['posts'] = Timber::get_posts( $args );
Timber::render(['accueil.twig'], $context);
Timber::render('accueil.twig', $context);

View File

@ -2,8 +2,6 @@
/**
* template name: agenda
*/
$context = Timber::context();
$timber_post = new Timber\Post();
@ -13,4 +11,4 @@ $args = array(
$context['posts'] = Timber::get_posts( $args );
Timber::render( ['agenda.twig'] , $context );
Timber::render('agenda.twig', $context );

View File

@ -25,4 +25,4 @@ $context = Timber::context();
$timber_post = new Timber\Post();
$context['post'] = $timber_post;
Timber::render( array( 'page-' . $timber_post->post_name . '.twig', 'page.twig' ), $context );
Timber::render( array( 'page.twig' ), $context );

View File

@ -2,9 +2,9 @@
{% block content %}
<section>
page agenda
<div>
{% for item in posts %}
page agenda
{% include 'components/thumbnails/thumbnails.twig'%}
{% endfor %}
</div>

View File

@ -1,5 +1,5 @@
<div id="bouton_en_savoir">
{% if name_template == accueil %}
{% if button == 'true' %}
<a href="{{post.meta('bouton_en_savoir').lien_bouton_en_savoir}}">{{post.meta('bouton_en_savoir').texte_bouton_en_savoir}}</a>
{% else %}
<div id="bouton_en_savoir">

View File

@ -22,9 +22,12 @@
<div class="lieu">{{item.lieu}}</div>
</div>
</div>
<div class="btn __more">
<a href="{{site.url}}/{{item.slug}}">En savoir plus</a>
</div>
<div id="btn redirection_page">
{% include 'components/buttons/bouton_ensavoir.html.twig'with { name__template : 'accueil' } %}
{% include 'components/buttons/bouton_ensavoir.html.twig' with { buttons : 'true' } %}
</div>
</div>

View File

@ -1,2 +1 @@
{{ dump(options) }}
<h3>{{ site_options }}</h3>