Skip to content

Commit

Permalink
further TeSS fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
hexylena committed Jun 26, 2024
1 parent 6859ca9 commit f3dc145
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _plugins/jekyll-jsonld.rb
Original file line number Diff line number Diff line change
Expand Up @@ -970,7 +970,7 @@ def generate_material_jsonld(material, topic, site)
data['about'] = about

data['educationalLevel'] = material.key?('level') ? eduLevel[material['level']] : 'Beginner'
data['mentions'] = (material['tags'] || []).map { |x| { '@type': 'Thing', name: x } }
data['mentions'] = (material['tags'] || []).map { |x| { '@type': 'Thing', name: x, url: "#{site['url']}#{site['baseurl']}/tags/#{x}/" } }
data['abstract'] = material.fetch('content', '').strip.split("\n").first

data
Expand Down

0 comments on commit f3dc145

Please sign in to comment.