Skip to content

Pelican plugin that supports easily replacing a file with a redirect.

Notifications You must be signed in to change notification settings

slinkp/pelican-redirect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

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

About

Pelican plugin that supports easily replacing a file with a redirect.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published