bug page agenda

This commit is contained in:
Chloe Listrat 2020-05-27 18:15:31 +02:00
parent 6f8d09a392
commit da0618f73f
3 changed files with 5 additions and 11 deletions

View File

@ -1,4 +1,7 @@
<?php
/**
* template name: agenda
*/
$context = Timber::context();

View File

@ -1,18 +1,9 @@
{% extends "base.twig" %}
{% block content %}
page agenda
<section>
page agenda
<div>
<article class="tease tease-{{post.post_type}}" id="tease-{{post.ID}}">
{% block content %}
<h2 class="h2"><a href="{{post.link}}">{{post.title}}</a></h2>
<p>{{post.preview}}</p>
{% if post.get_thumbnail %}
<img src="{{post.thumbnail.src}}" />
{% endif %}
{% endblock %}
</article>
{% for item in posts %}
{% include 'components/thumbnails/thumbnails.twig' %}
{% endfor %}

View File

@ -2,7 +2,7 @@
{% block content %}
<div class="content-wrapper">
{{dump(post)}}
<!-- {{dump(post)}} -->
<article class="post-type-{{ post.titre}}">
<img src="{{ post.image_event}}">