Skip to content

Commit bfde253

Browse files
committed
- only show TMS endpoints in the landing page, when the server publishes tiles
1 parent d78a8f3 commit bfde253

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pygeoapi/templates/landing_page.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,14 @@ <h2>{% trans %}Conformance{% endtrans %}</h2>
9797
<a href="{{ config['server']['url'] }}/conformance?f=html">{% trans %}View the conformance classes of this service{% endtrans %}</a>
9898
</p>
9999
</section>
100+
{% if data['tiles'] %}
100101
<section id="tilematrixsets">
101102
<h2>{% trans %}Tile Matrix Sets{% endtrans %}</h2>
102103
<p>
103104
<a href="{{ config['server']['url'] }}/TileMatrixSets?f=html">{% trans %}View the Tile Matrix Sets available on this service{% endtrans %}</a>
104105
</p>
105106
</section>
107+
{% endif %}
106108
</div>
107109
<div class="col-md-4 col-sm-12">
108110
<div class="card mb-3">

0 commit comments

Comments
 (0)