1
0
Fork 0
forked from github/pelican
pelican-theme/pelican
Borgar f2ea886ed2 Rewrote URL reformatter.
This attempts to fix several issues:

1. The regexp that's supposed to catch href's doesn't work at all and even if it did match anything, it has too many parentheses for the following loop.

2. When a relative URL is replaced then it is done globally on the text and not per instance. So this `<a href="/foo/bar">/foo/bar</a>` will incorrectly get reformatted to `<a href="./static/foo/bar">./static/foo/bar</a>`.

3. Query parameter URLs are rewritten but shouldn't: `<a href="?foo=bar">` gets rewritten to `<a href="./static/?foo=bar">`

4. The joiner is producing too many slashes: `"." + "static" + "/files/image.png"` => `./static//files/image.png`.
2011-06-29 13:41:57 +00:00
..
tests Basic test for the new rst reader. Locale is also converted to fr_FR.utf-8 (I wasn't able to run tests without this) 2011-05-11 09:42:37 +06:00
themes give full credit (with url to the initial theme) for the notmyidea theme 2011-06-17 20:32:59 +02:00
__init__.py bump version number 2011-06-17 19:45:09 +02:00
contents.py Merge branch tests into main. (See #44) 2011-05-10 23:18:11 +01:00
generators.py Order tag articles per date. Fix #133 2011-06-12 22:18:50 +02:00
log.py Merge branch 'hacks' of https://github.com/RonnyPfannschmidt/pelican 2011-05-07 19:12:30 +01:00
paginator.py Removed a division by zero 2011-03-26 17:46:31 +01:00
readers.py Enable Markdown Extra by default. 2011-06-21 03:23:41 -07:00
rstdirectives.py Add Pygments support to the default sourcecode directive. 2011-06-18 18:59:44 +02:00
settings.py check the actual value in the settings 2011-06-13 01:34:36 +02:00
utils.py European date format parsing. 2011-06-01 14:27:08 -07:00
writers.py Rewrote URL reformatter. 2011-06-29 13:41:57 +00:00