Parcourir la source

add thumbnails publication

Kevin il y a 4 ans
Parent
commit
af6bd16f4e

+ 10 - 22
web/themes/custom/popsu_colloque/template/node/node--thumbnails-publications.html.twig

@@ -73,27 +73,15 @@
  */
 #}
 <article{{ attributes }}>
-
-  {{ title_prefix }}
-  {% if label and not page %}
-    <h2{{ title_attributes }}>
-      <a href="{{ url }}" rel="bookmark">{{ label }}</a>
-    </h2>
-  {% endif %}
-  {{ title_suffix }}
-
-  {% if display_submitted %}
-    <footer>
-      {{ author_picture }}
-      <div{{ author_attributes }}>
-        {% trans %}Submitted by {{ author_name }} on {{ date }}{% endtrans %}
-        {{ metadata }}
-      </div>
-    </footer>
-  {% endif %}
-
-  <div{{ content_attributes }}>
-    {{ content }}
+<div{{ content_attributes }}>
+  <a href="{{ url }}">
+  <div class="__media">
+    {{content.field_ajouter_un_media}}
+  </div>
+  <div class="__info">
+    {{ label|raw }}
+    {{content.field_complement_d_info|raw}}
+  </div>
+  </a>
   </div>
-
 </article>