Closed tomkralidis closed 4 years ago
Something every simple like: https://bulma.io/documentation/
Suggestion from Paul van Genuchten
Make proposed page easy to customize using configuration options. and possibility of adding icons
The templating system seems a good option to change the layout according to user needs https://github.com/geopython/pygeoapi/blob/master/pygeoapi/templates/base.html
Some comments to improve the generic base template:
@pvgenuchten this is a really good point:
head-title/keyword/abstract should not be filled using generic config, in stead it should use properties from the collection or feature exposed on that page (title will be displayed on google search result), so would be interesting to configure for each Collection which property of Feature can be used as title (aka schema.org/name)
I just tested the results in Google Search. Google indexes up to the individual item, which is really nice (and could be useful for some datasets). But the HTML representation could be improved. See for example https://www.google.com/search?q=site:demo.pygeoapi.io&start=70
Improvements like: add a specific H1 header (and title element) for an item (there is no H1 currently), preferably a human readable title, but that may require some more work (e.g. an optional title_field
per provider for example). It may not be today, but I could maybe implement something for this
Closing given we probably have enough given our current HTML representation. Feel free to reopen if we missed anything. Having said this, I will open a new ticket for being able to modify look and feel.
I agree with Thijs (sorry missed this discussion) we should make sure to list at least the id of the feature in the title, now google shows same title for each feature
I'll work on a PR
or maybe better to move this to a new issue...
FYI #296 opened for review/comment.
Think this also can be closed, the scope is also is rather broad but at the time of opening the HTML was rather barren. Better to have more specific/targeted issues like #361.
The
f=html
responses need a better layout. The goal here should be to enhance layout (especially the maps) without introducing too many external dependencies.