1
0
Pelican plugin for creating alias pages (useful for moving from a different URL scheme such as ///
Go to file
2013-06-02 00:41:19 -04:00
.gitignore Initial commit 2013-05-31 18:53:46 -07:00
LICENSE.txt Prepare for pypi release 2013-06-01 14:20:49 -04:00
MANIFEST.in Fixes #8: Switch the README to reStructuredText 2013-06-01 17:59:00 -04:00
pelican_alias.py Well that was foolish. The Google Analytics Javascript never gets to run because of the immediate redirect. 2013-06-02 00:41:19 -04:00
README.rst Fixes #8: Switch the README to reStructuredText 2013-06-01 17:59:00 -04:00
setup.cfg Fixes #8: Switch the README to reStructuredText 2013-06-01 17:59:00 -04:00
setup.py Rename the module and fix the readme 2013-06-01 14:31:40 -04:00

pelican-alias
====================

`Pelican <http://getpelican.com>`_ plugin for creating alias pages (useful for moving from a different URL scheme such as */<year>/<month>/<title>/* as used by Wordpress).

Inspired by `jekyll_alias_generator <https://github.com/tsmango/jekyll_alias_generator/>`_.

License: MIT

Installation
============

Simply run::

	pip install pelican-alias

Usage
=====

* Add *pelican_alias* to *PLUGINS* in the pelican configuration file
* In each post or page that needs an alias, add an *:alias:* line to the metadata section. Example::

	My Aliased Post
	##############################################
	:date: 2013-05-31 22:09
	:category: Pelican
	:slug: my-aliased-post
	:alias: /2013/05/my-aliased-post/

	My content goes here.

This will create an additional HTML document at the path specified by *:alias:* that performs a canonical *meta* refresh to the new URL.
If the path ends in a slash (as in the above example) then the file actually created will be index.html so that this system will work with
Github pages.

Multiple aliases can be created for a single post by using a comma-delimited list. The delimiter may be changed by setting *ALIAS_DELIMITER*
in the pelican configuration file.