Skip to content

Commit

Permalink
Fix path for accessing json with correct MIME type
Browse files Browse the repository at this point in the history
  • Loading branch information
matamadio committed Sep 24, 2024
1 parent a349316 commit 8244d2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _layouts/dataset.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ <h2>Resources</h2>
(right-click and "save as" to download)
</li>
<li>
{% assign path_to_json = page.path | split: "/" | last | replace: ".md", ".json" | prepend: "_datasets/json/" %}
<a href="https://raw.githubusercontent.com/GFDRR/rdl-jkan/rdl-0.2/{{ path_to_json }}" property="dcat:accessURL" download>
{% assign path_to_json = page.path | split: "/" | last | replace: ".md", ".json" | prepend: "datasets/json/" %}
<a href="https://jkan.riskdatalibrary.org/{{ path_to_json }}" property="dcat:accessURL" download>
<span property="dct:title">Metadata</span>
</a>
<span class="label label-default" property="dcat:mediaType">json</span>
Expand Down

0 comments on commit 8244d2a

Please sign in to comment.