From 7e34cc1295aede10b17fdbc261dcba7051cdd589 Mon Sep 17 00:00:00 2001 From: Tom Kralidis Date: Wed, 7 Sep 2022 01:41:07 -0400 Subject: [PATCH] Update item.html --- pygeoapi/templates/collections/items/item.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pygeoapi/templates/collections/items/item.html b/pygeoapi/templates/collections/items/item.html index a5e5fdd..d013a54 100644 --- a/pygeoapi/templates/collections/items/item.html +++ b/pygeoapi/templates/collections/items/item.html @@ -1,7 +1,7 @@ {% extends "_base.html" %} {% set ptitle = data['properties'][data['title_field']] or ("Item {}".format(data['id'])) %} -{% block desc %}{{ data.get('properties',{}).get('description',{}) | string | truncate(250) }}{% endblock %} -{% block tags %}{{ data['properties'].get('themes',[{}])[0].get('concepts',[]) | join(',') }}{% endblock %} +{% block desc %}{{ data.get('properties',{}).get('description', {}) | string | truncate(250) }}{% endblock %} +{% block tags %}{{ data['properties'].get('themes', [{}])[0].get('concepts', []) | join(',') }}{% endblock %} {# Optionally renders an img element, otherwise standard value or link rendering #} {% macro render_item_value(v, width) -%} {% set val = v | string | trim %}