Skip to main content

sitemap generator plugin for pelican

Project description

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.

ATTENTION: Plugin is in heavy development - do not use yet!

ToDos

What still has to be implemented:

  • become a real python package

  • i18n articles aso (maybe)

Pelican settings

Add to the plugins list:

PLUGINS = [
    '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',
    }
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pelican-extended-sitemap-0.1.0.tar.gz (5.1 kB view details)

Uploaded Source

File details

Details for the file pelican-extended-sitemap-0.1.0.tar.gz.

File metadata

File hashes

Hashes for pelican-extended-sitemap-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7191115022e926bd39ed2eaa2237ded3493ca2b2903a52c87eecac0703b20adb
MD5 48254f8ec282210f05f50cd3ad8d356f
BLAKE2b-256 2b11056269f88b261e85f52db07d4a42c449534992eb49fee94d0af5203f09f5

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page