-
Notifications
You must be signed in to change notification settings - Fork 146
/
read_base.html
31 lines (29 loc) · 1.29 KB
/
read_base.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{% ckan_extends %}
{% block links %}
{{ super() }}
{% if h.dcat_endpoints_enabled() %}
{% with endpoint=h.dcat_get_endpoint('dataset') %}
<link rel="alternate" type="text/n3" href="{{ h.url_for(endpoint, _id=pkg.id, _format='n3', _external=True) }}"/>
<link rel="alternate" type="text/turtle" href="{{ h.url_for(endpoint, _id=pkg.id, _format='ttl', _external=True) }}"/>
<link rel="alternate" type="application/rdf+xml" href="{{ h.url_for(endpoint, _id=pkg.id, _format='xml', _external=True) }}"/>
<link rel="alternate" type="application/ld+json" href="{{ h.url_for(endpoint, _id=pkg.id, _format='jsonld', _external=True) }}"/>
{% endwith %}
{% endif %}
{% endblock -%}
{% block scripts %}
{{ super() }}
{% block structured_data %}
{#
h.structured_data is defined in the 'structured_data' plugin,
you have to activate the plugin (or implement the method yourself)
to make use of this feature.
More information about structured data:
https://developers.google.com/search/docs/guides/intro-structured-data
#}
{% if h.helper_available('structured_data') %}
<script type="application/ld+json">
{{ h.structured_data(pkg.id)|safe }}
</script>
{% endif %}
{% endblock %}
{% endblock %}