Skip to content

Commit

Permalink
Fix links for entity emails and metadata
Browse files Browse the repository at this point in the history
Metadata can be found in the rdl-0.2 branch. gh-pages branch is unused.
  • Loading branch information
lydiascarf committed Jun 12, 2024
1 parent 7c18df3 commit 2850125
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion _includes/display/entity.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
{% capture name %}{{ include.value.name }}{% endcapture %}
{% if include.value.url %}
{% capture href %}{{ include.value.url }}{% endcapture %}
<a href="{{ href }}">{{ name }}</a>
{% elsif include.value.email %}
{% capture href %}{{ include.value.email }}{% endcapture %}
<a href="mailto:{{ href }}">{{ name }}</a>
{% endif %}
<a href="{{ href }}">{{ name }}</a>
</td>
4 changes: 2 additions & 2 deletions _layouts/dataset.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ <h2>Resources</h2>
</li>
{% endfor %}
<li>
<a href="https://raw.githubusercontent.com/GFDRR/rdl-jkan/gh-pages/{{ page.path }}" property="dcat:accessURL" download>
<a href="https://raw.githubusercontent.com/GFDRR/rdl-jkan/rdl-0.2/{{ page.path }}" property="dcat:accessURL" download>
<span property="dct:title">Metadata</span>
</a>
<span class="label label-default" property="dcat:mediaType">markdown</span>
(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/gh-pages/{{ path_to_json }}" property="dcat:accessURL" download>
<a href="https://raw.githubusercontent.com/GFDRR/rdl-jkan/rdl-0.2/{{ 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 2850125

Please sign in to comment.