1
0
Fork 0
forked from github/pelican
pelican-theme/pelican
Dirk Makowski 0ec0cf9d0e Patch to allow relative ASSET_URL
Previously, webassets' ASSET_URL always was absolute.
This patch allows a relative ASSET_URL, depending on Pelican's
RELATIVE_URLS setting.

Hint for templates:
-------------------
Current version of webassets seem to remove any relative
paths at the beginning of the URL. So, if RELATIVE_URLS
is on, ASSET_URL will start with 'theme/', regardless if we
set assets_url here to './theme/' or to 'theme/'.
XXX However, this breaks the ASSET_URL if user navigates to
a sub-URL, e.g. if he clicks on a category. To workaround this
issue, I use
    <link rel="stylesheet" href="{{ SITEURL }}/{{ ASSET_URL }}">
instead of
    <link rel="stylesheet" href="{{ ASSET_URL }}">

Maybe this hint is worth to be included in the documentation.
I have it also written as comments in the source.
2012-08-28 00:50:17 +02:00
..
plugins pep8-ify 2012-07-12 15:29:08 +02:00
themes Merge pull request #433 from iurisilvio/patch-1 2012-08-16 04:31:40 -07:00
tools Improve devserver durability. Refs #473. 2012-08-27 13:09:25 -07:00
__init__.py Modify system path to ensure current directory is included 2012-07-20 07:38:16 -04:00
contents.py Add per page templates. Closes #376 2012-07-07 14:15:43 -07:00
generators.py Patch to allow relative ASSET_URL 2012-08-28 00:50:17 +02:00
log.py pelican/log.py simplified a bit 2012-03-25 18:47:14 +02:00
paginator.py PEP8-ify. 2012-03-09 16:21:38 +01:00
readers.py update typogrify support 2012-07-26 22:02:06 +02:00
rstdirectives.py Add support for abbreviations to reST translator (fixes #395). 2012-07-17 13:30:06 +02:00
settings.py Reimplement settings loading to preserve __file__ 2012-08-01 13:36:47 -04:00
signals.py Added signals to plugin for pages generation 2012-07-19 20:59:48 -04:00
utils.py Add unidecode for translating slugs in asian languages 2012-07-16 11:36:20 +08:00
writers.py strip tags for feed titles 2012-05-11 21:58:10 +02:00