diff --git a/docs/_plugins/api.rb b/docs/_plugins/api.rb index d5daa6df..80194d97 100644 --- a/docs/_plugins/api.rb +++ b/docs/_plugins/api.rb @@ -150,10 +150,7 @@ def generate(site) site.data['sessions_bytag'] = Hash.new { Array.new } site.data['sessions'].each{|k, v| # For each session we have some videos: - tags = v['videos'].map{|video| - p ">> #{video}" - p ">>> #{site.data['videos'][video]}" - site.data['videos'][video]['tags'] }.flatten.uniq + tags = v['videos'].map{|video| site.data['videos'][video]['tags'] }.flatten.uniq tags.each{|tag| if ! site.data['sessions_bytag'].has_key? tag site.data['sessions_bytag'][tag] = {}