Advertisement
Guest User

Untitled

a guest
Aug 25th, 2016
282
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <urlset xmlns="http://www.google.com/schemas/sitemap/0.84" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.google.com/schemas/sitemap/0.84 http://www.google.com/schemas/sitemap/0.84/sitemap.xsd">
  3. <url>
  4. <loc>{{ absolute_url(path('homepage')) }}</loc>
  5. <priority>0.8</priority>
  6. </url>
  7. {% for saison in saisons %}
  8. <url>
  9. <loc>{{ absolute_url(path('episode_saison', {slug: serie.slug, saison: saison.saison})) }}</loc>
  10. <priority>0.9</priority>
  11. </url>
  12. {% endfor %}
  13. {% for video in videos %}
  14. <url>
  15. <loc>{{ absolute_url(path('episode_view', {slug: serie.slug, saison: video.saison, episode: video.episode})) }}</loc>
  16. <priority>1.0</priority>
  17. </url>
  18. {% endfor %}
  19. {% if news|length %}
  20. <url>
  21. <loc>{{ absolute_url(path('actu_list')) }}</loc>
  22. <priority>0.8</priority>
  23. </url>
  24. {% for actu in news %}
  25. <url>
  26. <loc>{{ absolute_url(path('news_single', {slug: serie.slug, news: actu.id})) }}</loc>
  27. <priority>0.8</priority>
  28. </url>
  29. {% endfor %}
  30. {% endif %}
  31. </urlset>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement