1
0
Fork 0
forked from github/pelican
pelican-theme/pelican
Vladimír Vondruš ec2a1bd42a pagination: this lstrip() was way too hungry, eating absolute URLs.
Reverts back to how pagination worked for the {url} placeholder as I did
it in 182fb11c80. Absolute URLs with
one or two leading slashes were eaten by lstrip() and became relative,
which then caused broken links in my case.

Added extra comments to this piece of code (*and* the test) to make it
less likely that someone breaks this again in the future.
2019-01-04 22:10:53 +01:00
..
tests pagination: this lstrip() was way too hungry, eating absolute URLs. 2019-01-04 22:10:53 +01:00
themes Merge pull request #2374 from jorgesumle/hreflang 2018-11-12 08:15:08 +01:00
tools Remove stopserver from .PHONY prereqs in Makefile template 2018-12-12 13:25:14 -08:00
__init__.py Prepare for next version 2018-11-30 09:00:11 -08:00
cache.py fulfil pep8 standard 2015-08-17 13:34:32 +02:00
contents.py Remove non-existent tag attribute handling from Content.url_format 2018-11-25 13:27:18 +01:00
generators.py Convert FEED settings from %s to {slug} redux (#2432) 2018-11-03 16:12:20 +01:00
log.py Improve the looks of reST parser error output. 2018-11-10 23:08:10 +01:00
paginator.py pagination: this lstrip() was way too hungry, eating absolute URLs. 2019-01-04 22:10:53 +01:00
readers.py Use language_code if it is supported 2018-11-26 03:45:20 +03:00
rstdirectives.py Fix warnings originating from bad regexes 2017-03-27 16:09:08 +02:00
server.py Refactor pelican.server logging 2018-11-27 19:55:31 +03:00
settings.py Replace %s rather than fallback to defaults 2018-11-11 14:54:14 -08:00
signals.py Add a new signal: page_generator_write_page 2017-10-17 07:38:18 +05:00
urlwrappers.py Make URLWrapper.slug settable again 2018-11-11 21:35:51 +03:00
utils.py automatically copy linked static files 2018-11-01 18:08:11 +01:00
writers.py Remove Atom summaries when they are unnecessary 2018-12-18 21:57:16 +01:00