Skip to content

Commit

Permalink
Update node--teaser-list-no-read-more.html.twig
Browse files Browse the repository at this point in the history
  • Loading branch information
andmor- committed Aug 21, 2024
1 parent 10f17fc commit 31cb935
Showing 1 changed file with 9 additions and 19 deletions.
28 changes: 9 additions & 19 deletions templates/content/node--teaser-list-no-read-more.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -69,29 +69,19 @@
node.isSticky() ? 'node--sticky',
not node.isPublished() ? 'node--unpublished',
view_mode ? 'node--view-mode-' ~ view_mode|clean_class,
node.field_media.isEmpty() ? 'no-image-teaser',
'clearfix',
'teaser-list',
]
%}
<article{{ attributes.addClass(classes) }}>
<header>
{{ title_prefix }}
{% if label and not page %}
<h2{{ title_attributes.addClass('node__title') }}>
<a href="{{ url }}" rel="bookmark">{{ label }}</a>
</h2>
{% endif %}
{{ title_suffix }}
</header>
{% if display_submitted %}
<div class="node__meta">
{{ author_picture }}
{% block submitted %}
{{ date }}
{% endblock %}
{{ metadata }}
</div>
{% endif %}
<div{{ content_attributes.addClass('node__content', 'clearfix') }}>
{{ content }}
{{ content.field_media }}
<h2>
<a href="{{ url }}" rel="bookmark">{{ label }}</a>
</h2>
{{ content.body }}
{{ content.field_tags }}
<a class="content_link" href="{{ url }}">Read more</a>
</div>
</article>

0 comments on commit 31cb935

Please sign in to comment.