Skip to content
Snippets Groups Projects
media.xml 3.04 KiB
Newer Older
Lukas Ruge's avatar
Lukas Ruge committed
---
layout: null
---
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Chaotikm Video Realses</title>
    <description>Chaotikm Video Realses</description>
    <link>{{ site.url }}{{ site.baseurl }}/</link>
    <atom:link href="{{ "/media.xml" | prepend: site.baseurl | prepend: site.url }}" rel="self" type="application/rss+xml"/>
    <pubDate>{{ site.time | date_to_rfc822 }}</pubDate>
    <lastBuildDate>{{ site.time | date_to_rfc822 }}</lastBuildDate>
    <generator>Jekyll v{{ jekyll.version }}</generator>
Lukas Ruge's avatar
Lukas Ruge committed
    {% assign sorted = site.media | sort: 'release_date' | reverse %}
Lukas Ruge's avatar
Lukas Ruge committed
    {% capture nowunix %}{{'now' | date: '%s'}}{% endcapture %}
Lukas Ruge's avatar
Lukas Ruge committed
    {% for video in sorted limit:50%}
	   {% capture releasedate %}{{video.release_date | date: '%s'}}{% endcapture %}
      
      {% assign whitespace = " " %}
      
      {% capture persons -%}
        {% for person in video.persons %}{{person}}{% unless forloop.last %}, {% endunless %}
        {% endfor -%}
      {% endcapture -%}

      {% capture persons2 -%}{% for person in video.persons %}{{person}}{% unless forloop.last %} und {% endunless %}{% endfor -%}{% endcapture -%}

      {% capture persons3 -%}{{whitespace}} von {{persons2}}{% endcapture -%}
Lukas Ruge's avatar
Lukas Ruge committed

      {% assign optout = false -%}  
      {% if video.optout and video.optout  != '' -%}
        {% assign optout = true -%}
      {% endif -%}

    	{% if releasedate < nowunix and optout == false and video.file and video.file  != '' %}
          <item>{% assign name_before_title = false -%} 
Lukas Ruge's avatar
Lukas Ruge committed
              {% for conf in video.conferences -%}
                {% for c in site.conferences -%}
Lukas Ruge's avatar
Lukas Ruge committed
                  {% if conf == c.acronym and c.name_before_title -%}
Lukas Ruge's avatar
Lukas Ruge committed
                    {% assign name_before_title = true -%}  
                  {% endif -%}
                {% endfor -%}
              {% endfor -%}
              {% assign name_after_title = false -%} 
              {% for conf in video.conferences -%}
                {% for c in site.conferences -%}
                  {% if conf == c.acronym and c.name_after_title -%}
                    {% assign name_after_title = true -%}  
                  {% endif -%}
                {% endfor -%}
Lukas Ruge's avatar
Lukas Ruge committed
              {% endfor -%}
            <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>
Lukas Ruge's avatar
Lukas Ruge committed
            <description>{{ video.content | xml_escape }}</description>
Lukas Ruge's avatar
Lukas Ruge committed
            <pubDate>{{ video.release_date | date_to_rfc822 }}</pubDate>
Lukas Ruge's avatar
Lukas Ruge committed
            <link>{{ video.url | prepend: site.baseurl | prepend: site.url }}</link>
            <guid isPermaLink="true">{{ video.url | prepend: site.baseurl | prepend: site.url }}</guid>
          </item>
          {% endif %}
        {% endfor %}
Lukas Ruge's avatar
Lukas Ruge committed
  </channel>
</rss>