timber / starter-theme

The "_s" for Timber: a dead-simple theme that you can build anything from
MIT License
817 stars 276 forks source link

Add condition to check if menu exists #30

Closed titouanmathis closed 8 years ago

titouanmathis commented 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.

jarednova commented 8 years ago

Looks good — thanks @titouanmathis !