Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I add a redirect to an article with Pelican?

Tags:

pelican

I would like to have something in the header like

title: Whatever
slug: whatever
redirect: bla
redirect: foo
redirect: bar

so that Pelican generates pages which redirect from bla and foo and bar to whatever. Is this possible?

like image 968
Martin Thoma Avatar asked May 09 '16 09:05

Martin Thoma


1 Answers

I just saw that this is called an "alias". There is the plugin pelican-alias which can be installed by pip install pelican-alias. Then pelican_alias has to be put into the PLUGINS list in pelicanconf.py. Aliases are then defined as

alias: bla, foo, bar
like image 56
Martin Thoma Avatar answered Dec 31 '22 10:12

Martin Thoma