skip to navigation
skip to content

Not Logged In

pelican-extended-sitemap 0.1.2

sitemap generator plugin for pelican

Latest Version: 1.0.2

A sitemap plugin for Pelican.

It generates a sitemap.xml according to the specification of [sitemaps.org](http://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.

ToDos

What still has to be implemented:

  • i18n articles aso (maybe)

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',
    }
}
 
File Type Py Version Uploaded on Size
pelican-extended-sitemap-0.1.2.tar.gz (md5) Source 2014-03-01 4KB
  • Downloads (All Versions):
  • 30 downloads in the last day
  • 218 downloads in the last week
  • 898 downloads in the last month