diff --git a/pygeoapi/api.py b/pygeoapi/api.py index 7ea08dd..92ba518 100644 --- a/pygeoapi/api.py +++ b/pygeoapi/api.py @@ -764,6 +764,7 @@ class API: fcm['processes'] = False fcm['stac'] = False + fcm['collection'] = False if filter_dict_by_key_value(self.config['resources'], 'type', 'process'): @@ -773,6 +774,10 @@ class API: 'type', 'stac-collection'): fcm['stac'] = True + if filter_dict_by_key_value(self.config['resources'], + 'type', 'collection'): + fcm['collection'] = True + content = render_j2_template(self.tpl_config, 'landing_page.html', fcm, request.locale) return headers, HTTPStatus.OK, content diff --git a/pygeoapi/templates/landing_page.html b/pygeoapi/templates/landing_page.html index 7bc0d2b..ab67398 100644 --- a/pygeoapi/templates/landing_page.html +++ b/pygeoapi/templates/landing_page.html @@ -43,12 +43,14 @@ + {% if data['collection'] %}

{% trans %}Collections{% endtrans %}

{% trans %}View the collections in this service{% endtrans %}

+ {% endif %} {% if data['stac'] %}

{% trans %}SpatioTemporal Assets{% endtrans %}