From 6447de9932d5006689cb7dc44bf8c339646285dc Mon Sep 17 00:00:00 2001 From: paul van genuchten Date: Wed, 12 Jun 2019 17:33:46 +0200 Subject: [PATCH] fixes #176 missing catalog title in collections page (#177) improves how link and title are combined for schema.org --- pygeoapi/templates/base.html | 5 ++--- pygeoapi/templates/collection.html | 6 +++++- pygeoapi/templates/collections.html | 7 ++++--- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/pygeoapi/templates/base.html b/pygeoapi/templates/base.html index 67c4b09..59248e0 100644 --- a/pygeoapi/templates/base.html +++ b/pygeoapi/templates/base.html @@ -20,11 +20,10 @@
-
diff --git a/pygeoapi/templates/collection.html b/pygeoapi/templates/collection.html index 1fe1ae6..7f34592 100644 --- a/pygeoapi/templates/collection.html +++ b/pygeoapi/templates/collection.html @@ -6,7 +6,11 @@ {% endblock %} {% block body %}
- + + + + +

{{ data['title'] }}

{{ data['description'] }}

View

diff --git a/pygeoapi/templates/collections.html b/pygeoapi/templates/collections.html index 34704b3..766f989 100644 --- a/pygeoapi/templates/collections.html +++ b/pygeoapi/templates/collections.html @@ -16,9 +16,10 @@ {% for k, v in config['datasets'].items() %} - - - {{ v['title'] | striptags | truncate }} + + {{ v['description'] | striptags | truncate }}