1
0
Fork 0
forked from github/pelican
pelican-theme/pelican
W. Trevor King 33c60a78cd pelican/utils: Add split_all() and rework static URL generation
I think the conversion from native paths to URLs is best put off until
we are actually trying to generate the URL.  The old handling
(introduced in 2692586, Fixes #645 - Making cross-content linking
windows compatible, 2012-12-19) converted the path at StaticContent
initialization, which left you with a bogus StaticContent.src.

Once we drop the 'static' subdirectory, we will be able to drop the
`dest` and `url` parts from the StaticGenerator.generate_context()
handling, which will leave things looking a good deal cleaner than
they do now.
2013-03-10 23:21:38 -07:00
..
plugins added unique filtering and config limit param 2013-03-03 22:18:59 -08:00
tests Some doc + various enhancements 2013-03-10 22:57:08 -07:00
themes add disqus_url to comment js block 2013-03-05 23:42:42 -08:00
tools Fixed the stopserver command to use the correct Makefile syntax 2013-03-09 21:27:19 +00:00
__init__.py delete output directory properly 2013-03-03 22:14:05 -08:00
contents.py pelican/utils: Add split_all() and rework static URL generation 2013-03-10 23:21:38 -07:00
generators.py pelican/utils: Add split_all() and rework static URL generation 2013-03-10 23:21:38 -07:00
log.py Manual pass on sources for better standards. 2013-03-03 20:12:31 -08:00
paginator.py Port pelican to python 3. 2013-01-11 03:20:09 +01:00
readers.py Fix a test in the asciidoc reader, and add asciidoc to travis so that 2013-03-03 21:43:04 -08:00
rstdirectives.py Port pelican to python 3. 2013-01-11 03:20:09 +01:00
server.py Manual pass on sources for better standards. 2013-03-03 20:12:31 -08:00
settings.py contents: Convert StaticContent to Static, a Page subclass 2013-03-10 23:19:56 -07:00
signals.py Add a pages_generator_finalized signal. 2013-02-10 12:42:54 -08:00
urlwrappers.py Some doc + various enhancements 2013-03-10 22:57:08 -07:00
utils.py pelican/utils: Add split_all() and rework static URL generation 2013-03-10 23:21:38 -07:00
writers.py Manual pass on sources for better standards. 2013-03-03 20:12:31 -08:00