kopia lustrzana https://github.com/wagtail/wagtail
Tweaks to sitemap generation docs
rodzic
3be8c0374c
commit
61fd67f2e9
|
@ -31,7 +31,7 @@ Then, in urls.py, you need to add a link to the ``wagtail.contrib.wagtailsitemap
|
|||
)
|
||||
|
||||
|
||||
You should now be able to browse to "/sitemap.xml" and see the sitemap working.
|
||||
You should now be able to browse to "/sitemap.xml" and see the sitemap working. By default, all published pages in your website will be added to the site map.
|
||||
|
||||
|
||||
Customising
|
||||
|
@ -40,7 +40,7 @@ Customising
|
|||
URLs
|
||||
----
|
||||
|
||||
The Page class defines a ``get_sitemap_urls`` method which you can override to customise sitemaps per page type. This method must return a list of dictionaries, one dictionary per URL entry in the sitemap. You can exclude pages from the sitemap by returning an empty list.
|
||||
The Page class defines a ``get_sitemap_urls`` method which you can override to customise sitemaps per page instance. This method must return a list of dictionaries, one dictionary per URL entry in the sitemap. You can exclude pages from the sitemap by returning an empty list.
|
||||
|
||||
Each dictionary can contain the following:
|
||||
|
||||
|
@ -49,10 +49,10 @@ Each dictionary can contain the following:
|
|||
- **changefreq**
|
||||
- **priority**
|
||||
|
||||
You can add more but you will need to override the ``wagtailsitemaps/sitemap.xml`` template in order for them to be displayed in the sitemap.
|
||||
You can add more but yoBy default, all published pages in your website will be added to the site map.u will need to override the ``wagtailsitemaps/sitemap.xml`` template in order for them to be displayed in the sitemap.
|
||||
|
||||
|
||||
Cache
|
||||
-----
|
||||
|
||||
By default, sitemaps are cached for 100 minutes. You can change this by setting ``WAGTAILSITEMAPS_CACHE_TIMEOUT`` in your Django settings to the number of seconds you would like to cache to last for.
|
||||
By default, sitemaps are cached for 100 minutes. You can change this by setting ``WAGTAILSITEMAPS_CACHE_TIMEOUT`` in your Django settings to the number of seconds you would like the cache to last for.
|
||||
|
|
Ładowanie…
Reference in New Issue