Skip to content

Commit

Permalink
Add summary for program_talk_l2 descriptions if existent.
Browse files Browse the repository at this point in the history
  • Loading branch information
splattater committed Feb 13, 2024
1 parent 87337c5 commit d0a246b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions _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 }}
</li>
{%- 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 return_value == Nil %}{{ return_value | strip }}: {% endunless %}{{ title }}
{%- if description -%}</summary>{{ description | markdownify }}</details>{%- endif -%}
</li>

0 comments on commit d0a246b

Please sign in to comment.