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-alt.html.twig
similarity index 79%
rename from web/core/profiles/demo_umami/themes/umami/templates/content/node--highlighted-top.html.twig
rename to web/core/profiles/demo_umami/themes/umami/templates/content/node--card-common-alt.html.twig
index 72186f87c1279a670d01d85c71458adf0ec28e1b..8aea1b79029a55dd3d89e22f52e82ec4e84a4c07 100644 (file)
  * @see template_preprocess_node()
  */
 #}
-{%
-  set classes = [
-    'node',
-    'node--type-' ~ node.bundle|clean_class,
-    node.isPromoted() ? 'node--promoted',
-    node.isSticky() ? 'node--sticky',
-    not node.isPublished() ? 'node--unpublished',
-    view_mode ? 'node--view-mode-' ~ view_mode|clean_class,
-  ]
-%}
-{{ attach_library('classy/node') }}
-{{ attach_library('umami/view-mode-highlighted-top') }}
+{% extends "node--card-common.html.twig" %}
 
-<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 }}
-
-    <div class="read-more">
-      <a class="read-more__link" href="{{ url }}">{{ 'View'|t }} {{ node.bundle }}</a>
-    </div>
-
-  </div>
-
-</article>
+{% block libraries %}
+  {{ attach_library('umami/view-mode-card-common-alt') }}
+{% endblock %}