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:
@ -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')
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user