Browse Source

bug page agenda

chloe 4 years ago
parent
commit
da0618f73f

+ 3 - 0
web/app/themes/la_mine/agenda.php

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

+ 1 - 10
web/app/themes/la_mine/templates/agenda.twig

@@ -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 %}

+ 1 - 1
web/app/themes/la_mine/templates/single.twig

@@ -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}}">