Skip to content

Commit 85b9fe0

Browse files
committed
https://github.com/w3c/w3c-website/issues/684
Fix truncated "Related Pages" when there are no related pages
1 parent 9dd9ad7 commit 85b9fe0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/base.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@
163163
{% block pre_footer %}{% endblock %}
164164
</main>
165165
{% block crosslinks %}
166-
{% if crosslinks is defined and crosslinks|length > 0 %}
166+
{% if crosslinks is defined and crosslinks['links'] is defined and crosslinks['links']|length > 0 %}
167167
{{ include('@W3CWebsiteTemplates/components/styles/crosslinks.html.twig') }}
168168
{% endif %}
169169
{% endblock crosslinks %}

0 commit comments

Comments
 (0)