drop changefreq and priority from sitemap categories (#17113)

This commit is contained in:
Andrew Williamson 2021-05-12 12:48:50 +01:00 коммит произвёл GitHub
Родитель 09b67dcba3
Коммит 347fb54a70
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
5 изменённых файлов: 4 добавлений и 14 удалений

Просмотреть файл

@ -32,8 +32,6 @@ class Sitemap(DjangoSitemap):
class AddonSitemap(Sitemap):
priority = 1
changefreq = 'daily'
# i18n = True # TODO: support all localized urls
item_tuple = namedtuple(
'Item', ['last_updated', 'slug', 'urlname', 'page'], defaults=(1,)
@ -117,9 +115,7 @@ class AddonSitemap(Sitemap):
class AMOSitemap(Sitemap):
priority = 0.7
# i18n = True # TODO: support all localized urls
changefreq = 'always'
lastmod = datetime.datetime.now()
apps = None # because some urls are app-less, we specify per item
@ -150,9 +146,7 @@ class AMOSitemap(Sitemap):
class CategoriesSitemap(Sitemap):
priority = 0.7
# i18n = True # TODO: support all localized urls
changefreq = 'always'
lastmod = datetime.datetime.now()
apps = (amo.FIREFOX,) # category pages aren't supported on android
@ -191,8 +185,6 @@ class CategoriesSitemap(Sitemap):
class CollectionSitemap(Sitemap):
priority = 0.5
changefreq = 'daily'
# i18n = True # TODO: support all localized urls
def items(self):
@ -210,8 +202,6 @@ class CollectionSitemap(Sitemap):
class AccountSitemap(Sitemap):
priority = 0.5
changefreq = 'weekly'
# i18n = True # TODO: support all localized urls
item_tuple = namedtuple(
'AccountItem',

Просмотреть файл

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml">
<url><loc>http://testserver/en-US/android/addon/delicious-pierogi/</loc><lastmod>2020-10-02</lastmod><changefreq>daily</changefreq><priority>1</priority></url><url><loc>http://testserver/en-US/android/addon/swanky-curry/</loc><lastmod>2020-10-01</lastmod><changefreq>daily</changefreq><priority>1</priority></url><url><loc>http://testserver/en-US/android/addon/spicy-pierogi/</loc><lastmod>2020-09-30</lastmod><changefreq>daily</changefreq><priority>1</priority></url>
<url><loc>http://testserver/en-US/android/addon/delicious-pierogi/</loc><lastmod>2020-10-02</lastmod></url><url><loc>http://testserver/en-US/android/addon/swanky-curry/</loc><lastmod>2020-10-01</lastmod></url><url><loc>http://testserver/en-US/android/addon/spicy-pierogi/</loc><lastmod>2020-09-30</lastmod></url>
</urlset>

Просмотреть файл

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml">
<url><loc>http://testserver/en-US/firefox/addon/delicious-pierogi/</loc><lastmod>2020-10-02</lastmod><changefreq>daily</changefreq><priority>1</priority></url><url><loc>http://testserver/en-US/firefox/addon/swanky-curry/</loc><lastmod>2020-10-01</lastmod><changefreq>daily</changefreq><priority>1</priority></url><url><loc>http://testserver/en-US/firefox/addon/spicy-pierogi/</loc><lastmod>2020-09-30</lastmod><changefreq>daily</changefreq><priority>1</priority></url>
<url><loc>http://testserver/en-US/firefox/addon/delicious-pierogi/</loc><lastmod>2020-10-02</lastmod></url><url><loc>http://testserver/en-US/firefox/addon/swanky-curry/</loc><lastmod>2020-10-01</lastmod></url><url><loc>http://testserver/en-US/firefox/addon/spicy-pierogi/</loc><lastmod>2020-09-30</lastmod></url>
</urlset>

Просмотреть файл

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml">
<url><loc>http://testserver/en-US/firefox/addon/tasty-sushi/</loc><lastmod>2020-10-02</lastmod><changefreq>daily</changefreq><priority>1</priority></url><url><loc>http://testserver/en-US/firefox/addon/artisanal-pancake/</loc><lastmod>2020-10-02</lastmod><changefreq>daily</changefreq><priority>1</priority></url><url><loc>http://testserver/en-US/firefox/addon/food-truck-sushi/</loc><lastmod>2020-10-02</lastmod><changefreq>daily</changefreq><priority>1</priority></url><url><loc>http://testserver/en-US/firefox/addon/swanky-waffle/</loc><lastmod>2020-10-02</lastmod><changefreq>daily</changefreq><priority>1</priority></url><url><loc>http://testserver/en-US/firefox/addon/elegant-salad/</loc><lastmod>2020-10-02</lastmod><changefreq>daily</changefreq><priority>1</priority></url><url><loc>http://testserver/en-US/firefox/addon/exquisite-pancake/</loc><lastmod>2020-10-02</lastmod><changefreq>daily</changefreq><priority>1</priority></url><url><loc>http://testserver/en-US/firefox/addon/tasty-pierogi/</loc><lastmod>2020-10-02</lastmod><changefreq>daily</changefreq><priority>1</priority></url><url><loc>http://testserver/en-US/firefox/addon/exquisite-bacon/</loc><lastmod>2020-10-02</lastmod><changefreq>daily</changefreq><priority>1</priority></url><url><loc>http://testserver/en-US/firefox/addon/delicious-salad/</loc><lastmod>2020-10-02</lastmod><changefreq>daily</changefreq><priority>1</priority></url><url><loc>http://testserver/en-US/firefox/addon/swanky-burrito/</loc><lastmod>2020-10-02</lastmod><changefreq>daily</changefreq><priority>1</priority></url><url><loc>http://testserver/en-US/firefox/addon/tasty-curry/</loc><lastmod>2020-10-02</lastmod><changefreq>daily</changefreq><priority>1</priority></url><url><loc>http://testserver/en-US/firefox/addon/artisanal-gyro/</loc><lastmod>2020-10-02</lastmod><changefreq>daily</changefreq><priority>1</priority></url><url><loc>http://testserver/en-US/firefox/addon/tasty-bacon/</loc><lastmod>2020-10-02</lastmod><changefreq>daily</changefreq><priority>1</priority></url><url><loc>http://testserver/en-US/firefox/addon/spicy-cookie/</loc><lastmod>2020-10-02</lastmod><changefreq>daily</changefreq><priority>1</priority></url><url><loc>http://testserver/en-US/firefox/addon/swanky-sandwich/</loc><lastmod>2020-10-02</lastmod><changefreq>daily</changefreq><priority>1</priority></url><url><loc>http://testserver/en-US/firefox/addon/artisanal-burrito/</loc><lastmod>2020-10-02</lastmod><changefreq>daily</changefreq><priority>1</priority></url><url><loc>http://testserver/en-US/firefox/addon/food-truck-barbeque/</loc><lastmod>2020-10-02</lastmod><changefreq>daily</changefreq><priority>1</priority></url><url><loc>http://testserver/en-US/firefox/addon/exquisite-pie/</loc><lastmod>2020-10-02</lastmod><changefreq>daily</changefreq><priority>1</priority></url><url><loc>http://testserver/en-US/firefox/addon/spicy-sushi/</loc><lastmod>2020-10-02</lastmod><changefreq>daily</changefreq><priority>1</priority></url><url><loc>http://testserver/en-US/firefox/addon/exquisite-burrito/</loc><lastmod>2020-10-02</lastmod><changefreq>daily</changefreq><priority>1</priority></url>
<url><loc>http://testserver/en-US/firefox/addon/tasty-sushi/</loc><lastmod>2020-10-02</lastmod></url><url><loc>http://testserver/en-US/firefox/addon/artisanal-pancake/</loc><lastmod>2020-10-02</lastmod></url><url><loc>http://testserver/en-US/firefox/addon/food-truck-sushi/</loc><lastmod>2020-10-02</lastmod></url><url><loc>http://testserver/en-US/firefox/addon/swanky-waffle/</loc><lastmod>2020-10-02</lastmod></url><url><loc>http://testserver/en-US/firefox/addon/elegant-salad/</loc><lastmod>2020-10-02</lastmod></url><url><loc>http://testserver/en-US/firefox/addon/exquisite-pancake/</loc><lastmod>2020-10-02</lastmod></url><url><loc>http://testserver/en-US/firefox/addon/tasty-pierogi/</loc><lastmod>2020-10-02</lastmod></url><url><loc>http://testserver/en-US/firefox/addon/exquisite-bacon/</loc><lastmod>2020-10-02</lastmod></url><url><loc>http://testserver/en-US/firefox/addon/delicious-salad/</loc><lastmod>2020-10-02</lastmod></url><url><loc>http://testserver/en-US/firefox/addon/swanky-burrito/</loc><lastmod>2020-10-02</lastmod></url><url><loc>http://testserver/en-US/firefox/addon/tasty-curry/</loc><lastmod>2020-10-02</lastmod></url><url><loc>http://testserver/en-US/firefox/addon/artisanal-gyro/</loc><lastmod>2020-10-02</lastmod></url><url><loc>http://testserver/en-US/firefox/addon/tasty-bacon/</loc><lastmod>2020-10-02</lastmod></url><url><loc>http://testserver/en-US/firefox/addon/spicy-cookie/</loc><lastmod>2020-10-02</lastmod></url><url><loc>http://testserver/en-US/firefox/addon/swanky-sandwich/</loc><lastmod>2020-10-02</lastmod></url><url><loc>http://testserver/en-US/firefox/addon/artisanal-burrito/</loc><lastmod>2020-10-02</lastmod></url><url><loc>http://testserver/en-US/firefox/addon/food-truck-barbeque/</loc><lastmod>2020-10-02</lastmod></url><url><loc>http://testserver/en-US/firefox/addon/exquisite-pie/</loc><lastmod>2020-10-02</lastmod></url><url><loc>http://testserver/en-US/firefox/addon/spicy-sushi/</loc><lastmod>2020-10-02</lastmod></url><url><loc>http://testserver/en-US/firefox/addon/exquisite-burrito/</loc><lastmod>2020-10-02</lastmod></url>
</urlset>

Просмотреть файл

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml">
<url><loc>http://testserver/en-US/about</loc><lastmod>2021-04-08</lastmod><changefreq>always</changefreq><priority>0.7</priority></url><url><loc>http://testserver/contribute.json</loc><lastmod>2021-04-08</lastmod><changefreq>always</changefreq><priority>0.7</priority></url><url><loc>http://testserver/en-US/developers/</loc><lastmod>2021-04-08</lastmod><changefreq>always</changefreq><priority>0.7</priority></url><url><loc>http://testserver/en-US/review_guide</loc><lastmod>2021-04-08</lastmod><changefreq>always</changefreq><priority>0.7</priority></url><url><loc>http://testserver/en-US/firefox/pages/appversions/</loc><lastmod>2021-04-08</lastmod><changefreq>always</changefreq><priority>0.7</priority></url><url><loc>http://testserver/en-US/firefox/pages/appversions/format:rss</loc><lastmod>2021-04-08</lastmod><changefreq>always</changefreq><priority>0.7</priority></url>
<url><loc>http://testserver/en-US/about</loc><lastmod>2021-04-08</lastmod></url><url><loc>http://testserver/contribute.json</loc><lastmod>2021-04-08</lastmod></url><url><loc>http://testserver/en-US/developers/</loc><lastmod>2021-04-08</lastmod></url><url><loc>http://testserver/en-US/review_guide</loc><lastmod>2021-04-08</lastmod></url><url><loc>http://testserver/en-US/firefox/pages/appversions/</loc><lastmod>2021-04-08</lastmod></url><url><loc>http://testserver/en-US/firefox/pages/appversions/format:rss</loc><lastmod>2021-04-08</lastmod></url>
</urlset>