Skip to content

Commit

Permalink
Add schema.org customizations to dataset page
Browse files Browse the repository at this point in the history
Adds schema.org customizations to dataset info detail page, which should
fix issues with Google Dataset Search.
  • Loading branch information
benjwadams committed Mar 18, 2020
1 parent bb4c612 commit 6915310
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ckanext/ioos_theme/templates/package/read_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@
{{ h.build_nav_icon('dataset_activity', _('Activity Stream'), id=pkg.name) }}
{% endblock %}

{% block structured_data %}
<script type="application/ld+json">
{{ h.structured_data(pkg.id,
["schemaorg","euro_dcat_ap","ioos_dcat"])|safe }}
</script>
{% endblock %}

{% block primary_content_inner %}
{% block package_revision_info %}
{% if c.revision_date %}
Expand Down

0 comments on commit 6915310

Please sign in to comment.