From b82b1a86d35aeca7eb1becf2db56411a8c900a21 Mon Sep 17 00:00:00 2001 From: Stefano Borini <stefano.borini@gmail.com> Date: Sat, 9 Mar 2019 18:00:37 +0000 Subject: [PATCH] Shorter version that I assume should work. --- _layouts/default.html | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/_layouts/default.html b/_layouts/default.html index 5cffca92..c37fd235 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -62,15 +62,9 @@ <ul> {% for child in children_list %} {% if child.parent == page.title and child.title != page.title %} - {% if child.summary %} - <li> - <a href="{{ child.url | absolute_url }}">{{ child.title }}</a> - {{ child.summary }} - </li> - {% else %} - <li> - <a href="{{ child.url | absolute_url }}">{{ child.title }}</a> - </li> - {% endif %} + <li> + <a href="{{ child.url | absolute_url }}">{{ child.title }}</a>{% if child.summary %} - {{ child.summary }}{% endif %} + </li> {% endif %} {% endfor %} </ul> -- GitLab