{% for url in urls %} {% if url.loc|replace({hostname:''}) == url.loc %} {{ hostname }}{{ url.loc }} {% else %} {{ url.loc }} {% endif %} {% if url.lastmod is defined %} {{ url.lastmod|date('d/m/Y') }} {% endif %} {% if hostname ~ url.loc == hostname ~ urlGalerie %} {% for image2 in image2 %} {% if image2['loc']|replace({hostname:''}) == image2['loc'] %} {{ hostname }}{{ image2['loc'] }} {% else %} {{ image2['loc'] }} {% endif %} {{ image2['title'] }} {% endfor %} {% elseif url.id is defined and hostname ~ index ~ 'album/' ~ url.id == hostname ~ url.loc %} {% for imgs in image3 %} {% if imgs['idCat'] == url.id %} {% if imgs['loc']|replace({hostname:''}) == imgs['loc'] %} {{ hostname }}{{ imgs['loc'] }} {% else %} {{ imgs['loc'] }} {% endif %} {{ imgs['title'] }} {% endif %} {% endfor %} {% else %} {% if url.image is defined and url.image is not empty %} {% if url.image.loc|replace({hostname:''}) == url.image.loc %} {{ hostname }}{{ url.image.loc }} {% else %} {{ url.image.loc }} {% endif %} {{ url.image.title }} {% endif %} {% endif %} {% endfor %}