Enable XML sitemap

Posted on Mon 08 January 2018 in misc

Quick and dirty - but learnt some useful things for this.

Edit peliconf.py and enable plugins

1
PLUGINS = ['plugins.pelican-plugins.sitemap']

Notice the format for the location of the plugins, its not a path, but Python dot notation , like an import..*

Create a dictionary for sitemap settings

1
2
3
SITEMAP = {
    'format': 'xml'
}

Build, commit and push.

Don't forget to give google the sitemap :)