vendor/kunstmaan/sitemap-bundle/Resources/views/Sitemap/entry.xml.twig line 1

Open in your IDE?
  1. {% if not hide_from_sitemap(entry) %}
  2.     <url>
  3.         <loc>{{ url('_slug', { '_locale': locale, 'url': entry.slug }) }}</loc>
  4.         <lastmod>{{ entry.nodeTranslation.getPublicNodeVersion().getUpdated()|date('Y-m-d') }}</lastmod>
  5.         <priority>{{ "0." ~ priority }}</priority>
  6.     </url>
  7. {% endif %}
  8. {% if not hide_children_from_sitemap(entry) %}
  9.     {% for subNode in entry.getChildren() %}
  10.         {% include '@KunstmaanSitemap/Sitemap/entry.xml.twig' with {'entry' : subNode, 'priority' : (priority - 1) } %}
  11.     {% endfor %}
  12. {% endif %}