update sitemap
This commit is contained in:
34
templates/sitemap.xml
Normal file
34
templates/sitemap.xml
Normal file
@@ -0,0 +1,34 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||
{% for entry in entries %}
|
||||
<url>
|
||||
<loc>{{ entry.permalink }}</loc>
|
||||
{% if entry.updated %}
|
||||
<lastmod>{{ entry.updated | date(format="%Y-%m-%d") }}</lastmod>
|
||||
{% else %}
|
||||
<lastmod>{{ now() | date(format="%Y-%m-%d") }}</lastmod>
|
||||
{% endif %}
|
||||
{% if entry.permalink == "/" %}
|
||||
<changefreq>daily</changefreq>
|
||||
<priority>1.0</priority>
|
||||
{% elif entry.permalink is containing("/blog/") or entry.permalink is containing("/newsroom/") %}
|
||||
{% if entry.permalink is ending_with("/blog/") or entry.permalink is ending_with("/newsroom/") %}
|
||||
<changefreq>daily</changefreq>
|
||||
<priority>0.9</priority>
|
||||
{% else %}
|
||||
<changefreq>monthly</changefreq>
|
||||
<priority>0.7</priority>
|
||||
{% endif %}
|
||||
{% elif entry.permalink is containing("/people/") %}
|
||||
<changefreq>monthly</changefreq>
|
||||
<priority>0.6</priority>
|
||||
{% elif entry.permalink is containing("/tags/") or entry.permalink is containing("/categories/") or entry.permalink is containing("/partners-category/") or entry.permalink is containing("/news-category/") or entry.permalink is containing("/roles/") or entry.permalink is containing("/memberships/") %}
|
||||
<changefreq>weekly</changefreq>
|
||||
<priority>0.6</priority>
|
||||
{% else %}
|
||||
<changefreq>weekly</changefreq>
|
||||
<priority>0.8</priority>
|
||||
{% endif %}
|
||||
</url>
|
||||
{% endfor %}
|
||||
</urlset>
|
||||
Reference in New Issue
Block a user