Skip to main content

Redirect pages using meta http-equiv tags

Project description

Pelican Redirect: A Plugin for Pelican

build PyPI Version Python Versions License

Redirect pages using meta http-equiv tags

Installation

This plugin can be installed via:

python -m pip install pelican-redirect

Usage

Once this plugin is installed, you can add a key to the frontmatter of the file called original_url. The plugin will generate an HTML page at that location that redirects to the new location of the post/page. Example:

Title: A sample title
original_url: blog-posts/2021/07/21/a-sample-title.html

Content here

Assuming this file is now going to be served from blog-posts/a-simple-title.html, a file will be written to blog-posts/2021/07/21/a-sample-title.html that redirects to the new URL.s

Contributing

Contributions are welcome and much appreciated. Every little bit helps. You can contribute by improving the documentation, adding missing features, and fixing bugs. You can also help out by reviewing and commenting on existing issues.

To start contributing to this plugin, review the Contributing to Pelican documentation, beginning with the Contributing Code section.

License

This project is licensed under the BSD-3-Clause license.

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-redirect-1.0.2.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

pelican_redirect-1.0.2-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file pelican-redirect-1.0.2.tar.gz.

File metadata

  • Download URL: pelican-redirect-1.0.2.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for pelican-redirect-1.0.2.tar.gz
Algorithm Hash digest
SHA256 22800e2500207aca1def6203b730c2fe0b7918c746d6aa08c25329c83623e420
MD5 5fc304e566c62624ff1dde2db3681697
BLAKE2b-256 91d2058fd456b6a53a9138eeb2e91578d70b82ec22228462bdf31029c5a71b1d

See more details on using hashes here.

File details

Details for the file pelican_redirect-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: pelican_redirect-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for pelican_redirect-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 71f697bc753a4b7e9ae552262a85663e1985271d2d01bad23e26871be0770f60
MD5 4523adfb69d63dbdf3665983aa3ce6fb
BLAKE2b-256 55eae744088587841b94e0da57e40216a874903d5bd3156b10e61708e757b332

See more details on using hashes here.

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