From a915a3c1439a63250a4d37af3391dbf16bfa5f2c Mon Sep 17 00:00:00 2001
From: tvluke <tvluke@chaotikum.org>
Date: Thu, 25 Jan 2024 07:58:50 +0100
Subject: [PATCH] set correct date

---
 media_ext.xml | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/media_ext.xml b/media_ext.xml
index 1328bc79..c9adccdf 100644
--- a/media_ext.xml
+++ b/media_ext.xml
@@ -36,7 +36,7 @@ layout: null
         {% endfor -%}
       {% endif -%}
 
-      {% if video.recording_date and recording_date.event  != ''-%}
+      {% if video.recording_date and video.recording_date  != ''-%}
         {% assign recording_date =  video.recording_date -%}
       {% elsif event -%}
         {% assign recording_date =  event.eventdate -%}
@@ -66,7 +66,9 @@ layout: null
 <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>
 {% endif -%}
             <recDate>{{ recording_date | date: '%Y-%m-%d' }}</recDate>
-            <pubDate>{{ releasedate | date: '%Y-%m-%d' }}</pubDate>
+            {% if video.release_date and video.release_date  != ''-%}
+              <pubDate>{{ releasedate | date: '%Y-%m-%d' }}</pubDate>
+            {% endif -%}
             <license>{{video.licence}}</license>
             <persons>{{persons| strip}}</persons>
             {% if video.language and video.language  != '' -%}
-- 
GitLab