diff --git a/theme/templates/website/includes/summary.html b/theme/templates/website/includes/summary.html
index 312fc2d1a..a5bc3c4fb 100644
--- a/theme/templates/website/includes/summary.html
+++ b/theme/templates/website/includes/summary.html
@@ -4,21 +4,15 @@
{% if item.path and item.exists %}
{% if not item.external %}
-
- {% if item.level != "0" %}
- {{ item.level }}.
- {% endif %}
- {{ item.title }}
-
{% else %}
+ {% endif %}
{% if item.level != "0" %}
{{ item.level }}.
{% endif %}
{{ item.title }}
- {% endif %}
{% else %}
{{ item.level }}. {{ item.title }}
{% endif %}