diff options
author | W. Trevor King <wking@tremily.us> | 2013-01-05 07:43:11 -0500 |
---|---|---|
committer | W. Trevor King <wking@tremily.us> | 2013-06-12 15:02:31 -0400 |
commit | 7de7bd0e3715f2227ce84fcf198dcc98cc3a0582 (patch) | |
tree | 4c3eda402b839096aab0c80234295f0309ce3805 /samples | |
parent | d43dc1b9d6ba5f0f99c6de44db214f296558c701 (diff) | |
download | pelican-7de7bd0e3715f2227ce84fcf198dcc98cc3a0582.tar.gz |
Update sample configurations from FILES_TO_COPY to EXTRA_PATH_METADATA
Diffstat (limited to 'samples')
-rwxr-xr-x | samples/pelican.conf.py | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/samples/pelican.conf.py b/samples/pelican.conf.py index 70edd5f8..ad2042fd 100755 --- a/samples/pelican.conf.py +++ b/samples/pelican.conf.py @@ -34,11 +34,19 @@ SOCIAL = (('twitter', 'http://twitter.com/ametaireau'), # global metadata to all the contents DEFAULT_METADATA = (('yeah', 'it is'),) -# static paths will be copied under the same name -STATIC_PATHS = ["pictures", ] - -# A list of files to copy from the source to the destination -FILES_TO_COPY = (('extra/robots.txt', 'robots.txt'),) +# 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 +STATIC_PATHS = [ + 'pictures', + 'extra/robots.txt', + ] # custom page generated with a jinja2 template TEMPLATE_PAGES = {'pages/jinja2_template.html': 'jinja2_template.html'} |