Merge pull request #981 from drnextgis/collection-jinja-fix

Cast collection title to string
This commit is contained in:
Tom Kralidis
2022-09-07 01:50:20 -04:00
committed by GitHub
@@ -4,7 +4,7 @@
/ <a href="{{ data['collections_path'] }}">{% trans %}Collections{% endtrans %}</a>
{% for link in data['links'] %}
{% if link.rel == 'collection' %} /
<a href="{{ data['dataset_path'] }}">{{ link['title'] | truncate( 25 ) }}</a>
<a href="{{ data['dataset_path'] }}">{{ link['title'] | string | truncate( 25 ) }}</a>
{% set col_title = link['title'] %}
{% endif %}
{% endfor %}