-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix summary for program_talk_l2 descriptions
Fix wrong conditions that caused a problem that last found speakers were used if no speakers given.
- Loading branch information
1 parent
e58abb1
commit cddf73e
Showing
1 changed file
with
5 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |