Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / profiles / demo_umami / themes / umami / templates / content / node--card-common.html.twig
similarity index 91%
rename from web/core/profiles/demo_umami/themes/umami/templates/content/node--highlighted-small.html.twig
rename to web/core/profiles/demo_umami/themes/umami/templates/content/node--card-common.html.twig
index faa0d70d6648385335918b72f0a90fad1f9166b2..5717655d681b1c674e8de4671d332a8cc2c677ff 100644 (file)
     node.isPromoted() ? 'node--promoted',
     node.isSticky() ? 'node--sticky',
     not node.isPublished() ? 'node--unpublished',
+    'view-mode-card',
     view_mode ? 'node--view-mode-' ~ view_mode|clean_class,
   ]
 %}
 {{ attach_library('classy/node') }}
-{{ attach_library('umami/view-mode-highlighted-small') }}
+{{ attach_library('umami/view-mode-card') }}
+{% block libraries %}
+{{ attach_library('umami/view-mode-card-common') }}
+{% endblock %}
 
 <article{{ attributes.addClass(classes) }}>
 
-  <div{{ content_attributes.addClass('node__content') }}>
-    {{ content.field_image }}
-  </div>
-
-  <div class="node__meta">
-
-    {{ content.field_difficulty }}
-
-    {{ title_prefix }}
-    {% if not page %}
-      <h2{{ title_attributes.addClass('node__title') }}>
-        <a class="node__link" href="{{ url }}" rel="bookmark">{{ label }}</a>
-      </h2>
-    {% endif %}
-    {{ title_suffix }}
+  {{ title_prefix }}
+  {% if not page %}
+    <h2{{ title_attributes.addClass('node__title') }}>
+      <a class="node__link" href="{{ url }}" rel="bookmark">{{ label }}</a>
+    </h2>
+  {% endif %}
+  {{ title_suffix }}
 
-  </div>
   <div class="read-more">
     <a class="read-more__link" href="{{ url }}">{{ 'View'|t }} {{ node.bundle }}</a>
   </div>
 
+  <div{{ content_attributes.addClass('node__content') }}>
+    {{ content }}
+  </div>
+
 </article>