-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Clément
committed
Jul 17, 2024
1 parent
c0f9587
commit 613ebbb
Showing
5 changed files
with
24 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,14 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> | ||
|
||
{% for p in object.pages_slugs %} | ||
<url> | ||
<loc>{{ object.domain }}/pages/{{ p }}.html</loc> | ||
</url> | ||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml"> | ||
{% for url in urlset %} | ||
<url> | ||
<loc>{{ url.location }}</loc> | ||
{% if url.lastmod %}<lastmod>{{ url.lastmod.strftime(url.item.lastmod_format) }}</lastmod>{% endif %} | ||
{% if url.changefreq %}<changefreq>{{ url.changefreq }}</changefreq>{% endif %} | ||
{% if url.priority %}<priority>{{ url.priority }}</priority>{% endif %} | ||
{% for alternate in url.alternates %} | ||
<xhtml:link rel="alternate" hreflang="{{ alternate.lang_code }}" href="{{ alternate.location }}"/> | ||
{% endfor %} | ||
{% for p in object.posts_slugs %} | ||
<url> | ||
<loc>{{ object.domain }}/posts/{{ p }}.html</loc> | ||
</url> | ||
{% endfor %} | ||
|
||
</urlset> | ||
</url> | ||
{% endfor %} | ||
</urlset> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters