Skip to content

Latest commit

 

History

History
17 lines (10 loc) · 484 Bytes

README.md

File metadata and controls

17 lines (10 loc) · 484 Bytes

Pelican-Redirect plugin

Usage

Drop a source file like foo.302 anywhere in your article path. Its content must contain a location header, which is the destination to redirect to. Optionally include a delay header, which is the number of seconds to delay before redirect.

Configuration

In order for it to work, add this to your pelican settings file:

EXTRA_TEMPLATES_PATHS = ['/path/to/pelican-redirect/templates']

REDIRECT_SAVE_AS = PAGE_SAVE_AS