From c1e68f30600fcda87c476b1c8b5c31435f6ad855 Mon Sep 17 00:00:00 2001 From: Helena Rasche Date: Fri, 14 Jun 2024 11:35:08 +0200 Subject: [PATCH] generate all of them anyway --- _plugins/generator-recordings.rb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/_plugins/generator-recordings.rb b/_plugins/generator-recordings.rb index f8dcb4d2288b59..a34ed62e178c6a 100644 --- a/_plugins/generator-recordings.rb +++ b/_plugins/generator-recordings.rb @@ -14,12 +14,14 @@ class RecordingPageGenerator < Generator # +site+:: The site object def generate(site) Jekyll.logger.info "[GTN/Videos] Generating recording pages" - materials_with_videos = TopicFilter + materials = TopicFilter .list_all_materials(site) + + with_video = materials .select{|m| m.has_key? 'recordings' or m.has_key? 'slide_recordings'} - Jekyll.logger.info "[GTN/Videos] #{materials_with_videos.length} materials with recordings found." - materials_with_videos.each do |material| + Jekyll.logger.info "[GTN/Videos] #{with_video.length} materials with recordings found." + materials.each do |material| page2 = PageWithoutAFile.new(site, '', material['dir'], 'recordings/index.html') page2.content = nil page2.data['layout'] = 'recordings'