Add sitemap generation

Initially the rel="alternate" hreflang="xx" links in the sitemap caused the
size of the file to increase exponentially as additional languages were added.
The current implementation has a single sitemap.xml for each language, with a
sitemap_index.xml at the root.
This commit is contained in:
str4d
2013-01-04 12:38:49 +00:00
parent 3e8bd6eba3
commit a6a39fcb36
3 changed files with 105 additions and 0 deletions

View File

@ -15,10 +15,26 @@ CANONICAL_DOMAIN = 'www.i2p2.de'
BLOG_ENTRIES_PER_PAGE = 20
MEETINGS_PER_PAGE = 20
SUPPORTED_LANGS = [
'en',
'es',
'zh',
'de',
'fr',
'it',
'nl',
'ru',
'sv',
'cs',
'ar',
'el',
]
TEMPLATE_DIR = os.path.join(os.path.dirname(__file__), 'pages')
STATIC_DIR = os.path.join(os.path.dirname(__file__), 'static')
BLOG_DIR = os.path.join(os.path.dirname(__file__), 'blog')
MEETINGS_DIR = os.path.join(os.path.dirname(__file__), 'meetings/logs')
SITE_DIR = os.path.join(TEMPLATE_DIR, 'site')
MIRRORS_FILE = os.path.join(TEMPLATE_DIR, 'downloads/mirrors')