Out of the box, Pelican generated URLs are unclean, i.e. they have .html
appended. Elegant lets you use clean URLs with minimal configuration.
Mandatory
To use clean URLs, you server must support it.
Categories, Tags and Archives
In your Pelican configuration set following values
TAGS_URL = "tags"
CATEGORIES_URL = "categories"
ARCHIVES_URL = "archives"
With it set, your categories, tags and archives will be served from following links,
If you do not set the variables then the URLs will become
Articles
For clean URLs for articles, just set
ARTICLE_URL = "{slug}"
Pages
For pages, set
PAGE_URL = "{slug}"
PAGE_SAVE_AS = "{slug}.html"
Search
For search page, set
SEARCH_URL = "search"