Add INTRASITE_LINK_REGEX to configuration that user can modify

This INTRASITE_LINK_REGEX is a string. It should have the capturing
group name which is `what`.

This change was made after discussions with @ametaireau and
@justinmayer.

1. https://github.com/getpelican/pelican/pull/1067
1. https://github.com/getpelican/pelican/pull/1071

Updates getpelican/pelican#1061
This commit is contained in:
Talha Mansoor 2013-09-01 00:35:13 +05:00
commit 48fa70c6a6
2 changed files with 6 additions and 3 deletions

View file

@ -110,6 +110,7 @@ DEFAULT_CONFIG = {
'TEMPLATE_PAGES': {},
'IGNORE_FILES': ['.#*'],
'SLUG_SUBSTITUTIONS': (),
'INTRASITE_LINK_REGEX': '[{|](?P<what>.*?)[|}]',
}