diff --git a/pelicanconf.py b/pelicanconf.py index 420561d..f31b03a 100644 --- a/pelicanconf.py +++ b/pelicanconf.py @@ -52,6 +52,8 @@ ICONS = [ ('linkedin', 'https://www.linkedin.com/in/avinal/') ] +DIRECT_TEMPLATES = ('index', 'tags', 'categories', 'archives', 'sitemap') +SITEMAP_SAVE_AS = 'sitemap.xml' DEFAULT_PAGINATION = 10 diff --git a/themes/alchemy/templates/sitemap.html b/themes/alchemy/templates/sitemap.html index de9cd0c..9a53af3 100644 --- a/themes/alchemy/templates/sitemap.html +++ b/themes/alchemy/templates/sitemap.html @@ -1,10 +1,12 @@ + {% for article in articles %} {{ SITEURL }}/{{ article.url }} 0.8 + {% for translation in article.translations %} {{ SITEURL }}/{{ translation.url }} @@ -12,11 +14,13 @@ {% endfor %} {% endfor %} + {% for page in pages %} {{ SITEURL }}/{{ page.url }} 1.0 + {% for translation in page.translations %} {{ SITEURL }}/{{ translation.url }} @@ -24,4 +28,5 @@ {% endfor %} {% endfor %} + \ No newline at end of file