Skip to content

Commit

Permalink
markdownify
Browse files Browse the repository at this point in the history
  • Loading branch information
hexylena committed Sep 17, 2024
1 parent 8052099 commit 548091d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions _plugins/jekyll-jsonld.rb
Original file line number Diff line number Diff line change
Expand Up @@ -814,16 +814,16 @@ def generate_material_jsonld(material, topic, site)
# Description with questions, objectives and keypoints
if material.key?('questions') && !material['questions'].nil? && material['questions'].length.positive?
questions = material['questions'].join("\n - ")
description.push("The questions this #{material['type']} addresses are:\n - #{questions}\n\n")
description.push("## Questions this #{material['type']} will address\n\n - #{questions}\n\n")
end
if material.key?('objectives') && !material['objectives'].nil? && material['objectives'].length.positive?
objectives = material['objectives'].join("\n - ")
description.push("The objectives are:\n - #{objectives}\n\n")
description.push("## Learning Objectives\n\n - #{objectives}\n\n")
data['teaches'] = objectives
end
if material.key?('keypoints') && !material['keypoints'].nil? && material['keypoints'].length.positive?
keypoints = material['keypoints'].join("\n - ")
description.push("The keypoints are:\n - #{keypoints}\n\n")
description.push("## Key Points\n\n - #{keypoints}\n\n")
end

# Keywords
Expand Down

0 comments on commit 548091d

Please sign in to comment.