Skip to content
Snippets Groups Projects
Commit cbb6972d authored by Lukas Ruge's avatar Lukas Ruge
Browse files

optimizing

parent 74bee7c1
No related branches found
No related tags found
No related merge requests found
Pipeline #15836 passed
......@@ -10,6 +10,8 @@ layout: null
{% for video in sorted %}
{% capture releasedate %}{{video.release_date | date: '%s'}}{% endcapture %}
{% assign whitespace = " " %}
{% assign optout = false -%}
{% if video.optout and video.optout != '' -%}
{% assign optout = true -%}
......@@ -25,6 +27,10 @@ layout: null
{% endfor -%}
{% endcapture -%}
{% capture persons3 -%}
{{whitespace}} von {{persons2}}
{% endcapture -%}
{% if video.event and video.event != '' -%}
{% for e in site.events -%}
{% if e.uid == video.event -%}
......@@ -57,7 +63,7 @@ layout: null
{% endif -%}
{% endfor -%}
{% endfor -%}
<title>{% if video.persons and name_before_title -%}{{persons}}: {% endif -%}{{video.title| xml_escape }}{% for conf in video.conferences -%}{% for c in site.conferences -%}{% if conf == c.acronym -%}{% if c.ecki -%}[{{c.title| xml_escape}}]{% endif -%}{% endif -%}{% endfor -%}{% endfor -%}{% if video.persons and name_after_title -%} von {{persons2}} {% endif -%}</title>
<title>{% if video.persons and name_before_title -%}{{persons| strip}}: {% endif -%}{{video.title| xml_escape }}{% for conf in video.conferences -%}{% for c in site.conferences -%}{% if conf == c.acronym -%}{% if c.ecki -%}{{whitespace}}[{{c.title| xml_escape}}]{% endif -%}{% endif -%}{% endfor -%}{% endfor -%}{% if video.persons and name_after_title %}{{whitespace}}{{persons3| strip}}{% endif -%}</title>
{% capture ccontent %}{{video.content | strip_html | xml_escape }}{% endcapture -%}
{% if ccontent and ccontent != '' -%}
<description>{{ccontent}} &#xA;{% for conf in video.conferences %}{% for c in site.conferences -%}{% if conf == c.acronym and c.content != '' -%}{{c.content | strip_html | xml_escape }} &#xA;{% endif -%}{% endfor -%}{% endfor %}{% if video.licence and video.licence != '' -%}{{video.licence | strip_html | xml_escape }}{% else -%}This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License (CC BY NC ND 4.0). https://creativecommons.org/licenses/by-nc-nd/4.0/{% endif -%}</description>
......@@ -65,7 +71,7 @@ layout: null
<recDate>{{ recording_date | date: '%Y-%m-%d' }}</recDate>
<pubDate>{{ video.date | date: '%Y-%m-%d' }}</pubDate>
<license>{{video.licence}}</license>
<persons>{{persons}}</persons>
<persons>{{persons| strip}}</persons>
{% if video.language and video.language != '' -%}
<language>{{video.language}}</language>
{% else -%}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment