1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
- <urlset xmlns =" http://www.sitemaps.org/schemas/sitemap/0.9" >
2
+ <urlset xmlns =" http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:image = " http://www.google.com/schemas/sitemap-image/1.1 " >
3
3
{% for url in sitemap .urls %}
4
- <url >
5
- <loc >{{ url .loc }}</loc >
6
- {% if url .lastmod is defined %}
7
- <lastmod >{{ url .lastmod | date (constant (' DATE_W3C' )) }}</lastmod >
8
- {% endif %}
9
- {% if url .changefreq is defined %}
10
- <changefreq >{{ url .changefreq }}</changefreq >
11
- {% endif %}
12
- {% if url .priority is defined %}
13
- <priority >{{ url .priority }}</priority >
14
- {% endif %}
15
- </url >
4
+ <url >
5
+ <loc >{{ url .loc }}</loc >
6
+ {% if url .lastmod is defined %}
7
+ <lastmod >{{ url .lastmod | date (constant (' DATE_W3C' )) }}</lastmod >
8
+ {% endif %}
9
+ {% if url .changefreq is defined %}
10
+ <changefreq >{{ url .changefreq }}</changefreq >
11
+ {% endif %}
12
+ {% if url .priority is defined %}
13
+ <priority >{{ url .priority }}</priority >
14
+ {% endif %}
15
+ {% if url .images is defined %}
16
+ {% for image in url .images %}
17
+ <image:image >
18
+ {% if image .path is defined %}
19
+ <image:loc >{{ image .path }}</image:loc >
20
+ {% endif %}
21
+ {% if image .path is defined %}
22
+ <image:caption >{{ image .caption }}</image:caption >
23
+ {% endif %}
24
+ {% if image .geo_location is defined %}
25
+ <image:geo _location>{{ image .geo_location }}</image:geo _location>
26
+ {% endif %}
27
+ {% if image .title is defined %}
28
+ <image:title >{{ image .title }}</image:title >
29
+ {% endif %}
30
+ {% if image .licence is defined %}
31
+ <image:licence >{{ image .licence }}</image:licence >
32
+ {% endif %}
33
+ </image:image >
34
+ {% endfor %}
35
+ {% endif %}
36
+ </url >
16
37
{% endfor %}
17
38
</urlset >
0 commit comments