Controlling Pelican Output Files
Oct. 22, 2020
By default Pelican generation process results in a few files. Besides the site's homepage, a page each showing the list of articles, list of tags, list of categories and a page with a list of authors are produced.
Some sites may want to suppress some of these files. For instance, for a company website, only the the site homepage & the article list (if the site incorporates a blog) may be necessary.
You can achieve this by the following setting in pelicanconf.py
:
ARCHIVES_SAVE_AS = ''
AUTHOR_SAVE_AS = ''
AUTHORS_SAVE_AS = ''
CATEGORY_SAVE_AS = ''
CATEGORIES_SAVE_AS = ''
TAGS_SAVE_AS = ''
TAG_SAVE_AS = ''
Specifying empty string values as the output filenames for the relevant HTML page results in the generation of the file being skipped.