mirror of
https://github.com/postgres/pgweb.git
synced 2025-08-06 09:57:57 +00:00
Include last modified date in sitemap
This commit is contained in:
@ -138,8 +138,10 @@ def sitemap(request):
|
||||
pages+=1
|
||||
x.startElement('url', {})
|
||||
x.add_xml_element('loc', 'http://www.postgresql.org/%s' % urllib.quote(p[0]))
|
||||
if p[1]:
|
||||
if len(p) > 1 and p[1]:
|
||||
x.add_xml_element('priority', unicode(p[1]))
|
||||
if len(p) > 2 and p[2]:
|
||||
x.add_xml_element('lastmod', p[2].isoformat() + "Z")
|
||||
x.endElement('url')
|
||||
x.endElement('urlset')
|
||||
x.endDocument()
|
||||
|
Reference in New Issue
Block a user