sitemap generator plugin for pelican
Project description
A sitemap plugin for Pelican.
It generates a sitemap.xml according to the specification of sitemaps.org and considers the pelican index page, articles, pages and special pages (like tags, categories, authors). Also comes with a XML stylesheet to be able to view the sitemap in browser without pain.
There is also a sitemap plugin within the official pelican plugin repo, but it did not produce the expected results for me.
Pelican settings
Add to the plugins list:
PLUGINS = [
'extended-sitemap'
]
Plugin settings
Add the EXTENDED_SITEMAP_PLUGIN dict to your settings. The keys explained:
priorities: priority for each page type, from 0.0 to 1.0
index: index page
articles: article pages
pages: pages
others: category, tags and authors pages
changefrequencies: how often a page will likely change, possible values: always, hourly, daily, weekly, monthly, yearly, never
The settings below are the default values:
EXTENDED_SITEMAP_PLUGIN = {
'priorities': {
'index': 1.0,
'articles': 0.8,
'pages': 0.5,
'others': 0.4
},
'changefrequencies': {
'index': 'daily',
'articles': 'weekly',
'pages': 'monthly',
'others': 'monthly',
}
}
ToDos
What still has to be implemented:
support for multilingual content, see pelican translations (it in fact may work, but I have not tested it)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for pelican-extended-sitemap-0.1.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5748613331eb6a7cf17fe1cb11a31f0158af7673407e2e7643ef716cf03d036 |
|
MD5 | 6abcbc1bf0b1ec1cfd8d684e6295cd2e |
|
BLAKE2b-256 | 5403abd716ab97e5d3d10adc9b2af2a8e9dadf39f8d0c50967256fbbfb1c1b4a |