Skip to content

Commit

Permalink
Attempt fix for datalayer noshow
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-bryson committed Jul 8, 2024
1 parent 8b7dfd8 commit 71c2379
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@
{% set publisher = pkg.extras.publisher or pkg.organization.name or "error-publsiher" %}
{% set language = pkg.extras.language or "en" %}

<script type="application/ld+json" class="jsonld-dataset">
dataLayer = [{
<script>
window.dataLayer = window.dataLayer || [];

dataLayer.push({
"nodeID": "{{ pkg.id }}",
"contentType": "dataset",
"language": "{{ language }}",
Expand All @@ -19,7 +21,7 @@
"Page_Type": "Dataset Page",
"organization": "{{ organization }}",
"publisher": "{{ publisher }}"
}];
});
</script>
{% endblock %}
{% endif %}
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

setup(
name="ckanext-datagovtheme",
version="0.2.30",
version="0.2.31",
description="CKAN Extension to manage data.gov theme",
long_description=long_description,
classifiers=[
Expand Down

0 comments on commit 71c2379

Please sign in to comment.