{% for nav_item in nav %} {% if nav_item.children %} {% for nav_item in nav_item.children %} {{ config.site_url }}{{ nav_item.abs_url }} {{nav_item.update_date}} daily {% endfor %} {% else %} {{ config.site_url }}{{ nav_item.abs_url }} {{nav_item.update_date}} daily {% endif %} {% endfor %}