Skip to content

Commit

Permalink
Handle slides with recordings
Browse files Browse the repository at this point in the history
  • Loading branch information
hexylena committed Jun 14, 2024
1 parent 193a4fe commit 9c8e8dc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion _plugins/generator-recordings.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@ class RecordingPageGenerator < Generator
# +site+:: The site object
def generate(site)
Jekyll.logger.info "[GTN/Videos] Generating recording pages"
TopicFilter.list_all_materials(site).select{|m| m.has_key? 'recordings'}.each do |material|
materials_with_videos = TopicFilter
.list_all_materials(site)
.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|
page2 = PageWithoutAFile.new(site, '', material['dir'], 'recordings/index.html')
page2.content = nil
page2.data['layout'] = 'recordings'
Expand Down

0 comments on commit 9c8e8dc

Please sign in to comment.