diff options
author | W. Trevor King <wking@tremily.us> | 2013-01-05 08:42:50 -0500 |
---|---|---|
committer | W. Trevor King <wking@tremily.us> | 2013-06-15 20:52:16 -0400 |
commit | 0dee76f2598336a70d3c4535fd49217566971a44 (patch) | |
tree | 3dffc3931aec31bdb71cb34330a28792f23076f0 /samples | |
parent | dfb29b53880ecd8c5f6ee99c09040d84fa17c57b (diff) | |
download | pelican-0dee76f2598336a70d3c4535fd49217566971a44.tar.gz |
samples: Remove EXTRA_PATH_METADATA entries for pictures
I'd added them earlier to test that a configuration edit could
preserve the original output locations. However, it is likely that
you have quite a number of static files, and we shouldn't recommend
listing explicit paths for all of them. With this configuration
change, the pictures will be copied into the output directory using
their original relative path (e.g. `pictures/Fat_Cat.jpg` without the
`static`). Any |filename|-style links will be updated automatically.
If you *want* the pictures to end up in a `static` directory, it's
easier to just organize your source that way.
Diffstat (limited to 'samples')
-rw-r--r-- | samples/content/extra/robots.txt | 2 | ||||
-rwxr-xr-x | samples/pelican.conf.py | 3 |
2 files changed, 1 insertions, 4 deletions
diff --git a/samples/content/extra/robots.txt b/samples/content/extra/robots.txt index ae5b0d05..19a6e299 100644 --- a/samples/content/extra/robots.txt +++ b/samples/content/extra/robots.txt @@ -1,2 +1,2 @@ User-agent: * -Disallow: /static/pictures +Disallow: /pictures diff --git a/samples/pelican.conf.py b/samples/pelican.conf.py index ad2042fd..4d5cd06d 100755 --- a/samples/pelican.conf.py +++ b/samples/pelican.conf.py @@ -37,9 +37,6 @@ DEFAULT_METADATA = (('yeah', 'it is'),) # path-specific metadata EXTRA_PATH_METADATA = { 'extra/robots.txt': {'path': 'robots.txt'}, - 'pictures/Fat_Cat.jpg': {'path': 'static/pictures/Fat_Cat.jpg'}, - 'pictures/Sushi.jpg': {'path': 'static/pictures/Sushi.jpg'}, - 'pictures/Sushi_Macro.jpg': {'path': 'static/pictures/Sushi_Macro.jpg'}, } # static paths will be copied without parsing their contents |