Skip to content

Commit

Permalink
Simplify due to lack of introduction slides
Browse files Browse the repository at this point in the history
  • Loading branch information
hexylena committed Jan 20, 2023
1 parent 718f798 commit 86ca0ae
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions _plugins/gtn.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,19 +88,8 @@ def filter_authors(contributors, contributions)
def get_default_link(material)
url = nil

if material['type'] == "introduction"
subfolder = 'slides'
else
subfolder = 'tutorials'
end

if material['slides']
url = "topics/#{material['topic_name']}/#{subfolder}/#{material['tutorial_name']}"
if material['type'] != "introduction"
url += "/slides.html"
else
url += ".html"
end
url = "topics/#{material['topic_name']}/tutorials/#{material['tutorial_name']}.html"
end

if material['hands_on']
Expand Down

0 comments on commit 86ca0ae

Please sign in to comment.