diff --git a/pygeoapi/api.py b/pygeoapi/api.py index c9de27b..22f9919 100644 --- a/pygeoapi/api.py +++ b/pygeoapi/api.py @@ -819,6 +819,7 @@ class API(object): content['links'][0]['rel'] = 'alternate' content['links'][1]['rel'] = 'self' + content['title'] = self.config['datasets'][dataset]['title'] content = _render_j2_template(self.config, 'item.html', content) diff --git a/pygeoapi/templates/item.html b/pygeoapi/templates/item.html index 6f3e1cc..5b5b171 100644 --- a/pygeoapi/templates/item.html +++ b/pygeoapi/templates/item.html @@ -12,7 +12,7 @@ {{ v | urlize() }} {% endif %} {%- endmacro %} -{% block title %}{{ super() }} {{ data['title'] }} {% endblock %} +{% block title %}{{ super() }} {{ data['title'] }} - {{ data['id'] }}{% endblock %} {% block crumbs %}{{ super() }} / Collections {% for link in data['links'] %}