Changeset 4088
- Timestamp:
- 11/20/06 10:32:40 (2 years ago)
- Files:
-
- django/trunk/django/contrib/sitemaps/templates/sitemap_index.xml (modified) (1 diff)
- django/trunk/django/contrib/sitemaps/templates/sitemap.xml (modified) (1 diff)
- django/trunk/docs/sitemaps.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/contrib/sitemaps/templates/sitemap_index.xml
r3869 r4088 1 1 <?xml version="1.0" encoding="UTF-8"?> 2 <sitemapindex xmlns="http://www. google.com/schemas/sitemap/0.84">2 <sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemapindex/0.9"> 3 3 {% for location in sitemaps %}<sitemap><loc>{{ location|escape }}</loc></sitemap>{% endfor %} 4 4 </sitemapindex> django/trunk/django/contrib/sitemaps/templates/sitemap.xml
r3869 r4088 1 1 <?xml version="1.0" encoding="UTF-8"?> 2 <urlset xmlns="http://www. google.com/schemas/sitemap/0.84">2 <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> 3 3 {% spaceless %} 4 4 {% for url in urlset %} django/trunk/docs/sitemaps.txt
r3699 r4088 6 6 7 7 Django comes with a high-level sitemap-generating framework that makes 8 creating `Google Sitemap`_ XML files easy.9 10 .. _ Google Sitemap: http://www.google.com/webmasters/sitemaps/docs/en/protocol.html8 creating sitemap_ XML files easy. 9 10 .. _sitemap: http://www.sitemaps.org/ 11 11 12 12 Overview … … 56 56 This tells Django to build a sitemap when a client accesses ``/sitemap.xml``. 57 57 58 The name of the sitemap file is not important, but the location is. Google will 59 only index links in your sitemap for the current URL level and below. For 60 instance, if ``sitemap.xml`` lives in your root directory, it may reference any 61 URL in your site. However, if your sitemap lives at ``/content/sitemap.xml``, 62 it may only reference URLs that begin with ``/content/``. 58 The name of the sitemap file is not important, but the location is. Search 59 engines will only index links in your sitemap for the current URL level and 60 below. For instance, if ``sitemap.xml`` lives in your root directory, it may 61 reference any URL in your site. However, if your sitemap lives at 62 ``/content/sitemap.xml``, it may only reference URLs that begin with 63 ``/content/``. 63 64 64 65 The sitemap view takes an extra, required argument: ``{'sitemaps': sitemaps}``. … … 200 201 201 202 Example values for ``priority``: ``0.4``, ``1.0``. The default priority of a 202 page is ``0.5``. See Google's documentation for more documentation.203 204 .. _ Google's documentation: http://www.google.com/webmasters/sitemaps/docs/en/protocol.html203 page is ``0.5``. See the `sitemaps.org documentation`_ for more. 204 205 .. _sitemaps.org documentation: http://www.sitemaps.org/protocol.html#prioritydef 205 206 206 207 Shortcuts
