Verified Commit 0264873f authored by Roberto Bochet's avatar Roberto Bochet
Browse files

Added support to add slides to courses pages

parent aec8b6a9
Pipeline #787 passed with stages
in 10 minutes and 55 seconds
......@@ -39,7 +39,10 @@
</div>
<div class="topics">
{% for topic in session.topics %}
<div>{{topic}}</div>
<div>{{ topic.title }}
{% if topic.slides %} <a href="{{ topic.slides }}"><i class="fa fa-file"></i></a> {% endif %}
{% if topic.record %} <a href="{{ topic.record }}"><i class="fa fa-film"></i></a> {% endif %}
</div>
{% endfor %}
</div>
</div>
......
......@@ -121,9 +121,17 @@ module Jekyll
# fix levels composition of room value
v["schedule"].each do |s|
if s["room"] != nil && !s["room"].is_a?(Hash)
s["room"] = {"room" => s["room"]}
s["room"] = { "room" => s["room"] }
end
# topics
s["topics"].each_index do |t|
unless s["topics"][t].is_a?(Hash)
s["topics"][t] = { "title" => s["topics"][t] }
end
end
end
end
# transforms hash to array
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment