Skip to content

Commit

Permalink
Fix summary for program_talk_l2 descriptions
Browse files Browse the repository at this point in the history
Fix wrong conditions that caused a problem that last found speakers were
used if no speakers given.
  • Loading branch information
splattater committed Feb 15, 2024
1 parent e58abb1 commit cddf73e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion _includes/components/program_talk_l2.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
{%- assign talk = include.talk -%}
{%- assign show_date = include.show_date -%}
{%- assign title = talk | rdf_property: "dct:title", site.language -%}
{%- assign description = talk | rdf_property: "dct:description", site.language -%}
{%- assign speaker = talk | rdf_property: "schema:performer" -%}
<li>
{% if show_date %}
{%- assign start = talk | rdf_property: "schema:startTime" | date: "%H:%M" -%}
{%- assign end = talk | rdf_property: "schema:endTime" | date: "%H:%M" -%}
{{ start }}-{{ end }}
{% endif %}
{% unless speaker == Nil %}{%- capture return_value -%}{%- include components/list_inline_pair.html sub=talk pred="schema:performer" -%}{%- endcapture -%}{{ return_value | strip }}: {% endunless %}{{ title }}
{%- unless speaker == Nil -%}{%- capture return_value -%}{%- include components/list_inline_pair.html sub=talk pred="schema:performer" -%}{%- endcapture -%}{%- endunless -%}
{%- if description -%}<details><summary style="cursor: zoom-in;">{%- endif -%}
{% unless speaker == Nil %}{{ return_value | strip }}: {% endunless %}{{ title }}
{%- if description -%}</summary>{{ description | markdownify }}</details>{%- endif -%}
</li>

0 comments on commit cddf73e

Please sign in to comment.