templates/sitemap.xml.twig line 1

Open in your IDE?
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <urlset
  3.     xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
  4.     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  5.     xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
  6.             http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
  7.     <!-- created with Free Online Sitemap Generator www.xml-sitemaps.com -->
  8.     {% for siteMap in siteMaps %}
  9.         <url>
  10.             <loc>{{ siteMap.link }}</loc>
  11.             <lastmod>{{ siteMap.updatedAt|date('Y-m-d') }}T10:48:20+00:00</lastmod>
  12.             <priority>{{ siteMap.priority }}</priority>
  13.         </url>
  14.     {% endfor %}
  15.     {% for offer in offers %}
  16.         {% if offer.siteMapIndex and offer.society %}
  17.             <url>
  18.                 <loc>{{ url('public_mission', {'slug' : offer.slug}) }}</loc>
  19.                 <lastmod>{{ offer.createdAt|date('Y-m-d') }}T00:00:00+00:00</lastmod>
  20.                 <priority>0.60</priority>
  21.             </url>
  22.         {% endif %}
  23.     {% endfor %}
  24. </urlset>