Skip to content

Commit d348d31

Browse files
authored
Sj/fix talk boxes (#214)
* fix: Rename the speaker talk-list preprocess hook and template to their summit_speaker_2025 versions * fix: restore generic speaker-talk template file to display talk summaries * fix: restore generic speaker-talk template file to display talk summaries
1 parent 5774c16 commit d348d31

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{% for item in items %}
2+
{% set talkDescription = item.content['#node'].field_talk_description[0].value %}
3+
{% set talkTitle = item.content['#node'].title[0].value %}
4+
{% set talkNode = item.content['#node'].nid[0].value %}
5+
<div class="speaker__talk">
6+
<h2><a href="{{ url('entity.node.canonical', {'node': talkNode}) }}">{{ talkTitle }}</a></h2>
7+
<p>{{ talkDescription|length > 400 ? talkDescription|slice(0, 400)|raw ~ '…' : talkDescription|raw }}</p>
8+
</div>
9+
{% endfor %}

0 commit comments

Comments
 (0)