Update item.html

This commit is contained in:
Tom Kralidis
2022-09-07 01:41:07 -04:00
committed by GitHub
parent faaf10be8b
commit 7e34cc1295
@@ -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 %}