Closed titouanmathis closed 8 years ago
I added a condition to check if the Twig variable {{ menu }} is not empty, to avoid empty <ul> in menu items with no descendants.
{{ menu }}
<ul>
Looks good — thanks @titouanmathis !
I added a condition to check if the Twig variable
{{ menu }}
is not empty, to avoid empty<ul>
in menu items with no descendants.