Skip to content

Commit

Permalink
add schema to LP page
Browse files Browse the repository at this point in the history
  • Loading branch information
hexylena committed Nov 3, 2023
1 parent eb99d27 commit 031062b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
18 changes: 18 additions & 0 deletions _layouts/learning-pathway.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,24 @@
{% assign gitter = site.gitter_url %}
{% endif %}

<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Course",
"name": "{{ pathway.title }}",
"description": "{{ pathway.description }}",
"provider": {
"@type": "Organization",
"email": "[email protected]",
"name": "Galaxy Training Network",
"url": "https://training.galaxyproject.org",
"logo": "https://training.galaxyproject.org/training-material/assets/images/GTNLogo1000.png",
"sameAs": "https://training.galaxyproject.org"
}
}
</script>



<section class="tutorials-list {{ page.topic_name }} topic-type-{{ topic.type }}">
<hgroup>
Expand Down
3 changes: 2 additions & 1 deletion _plugins/jekyll-jsonld.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ module JsonldFilter
'@type': 'Organization',
email: '[email protected]',
name: 'Galaxy Training Network',
url: 'https://galaxyproject.org/teach/gtn/'
url: "https://training.galaxyproject.org",
logo: "https://training.galaxyproject.org/training-material/assets/images/GTNLogo1000.png",
}.freeze

A11Y = {
Expand Down

0 comments on commit 031062b

Please sign in to comment.