From b9e22325bb46e2611a73e54a3f0ade31800d1bd9 Mon Sep 17 00:00:00 2001 From: Sébastien Dailly Date: Fri, 9 May 2014 14:30:46 +0200 Subject: Moved to pelican 3.3 --- pelicanconf.py | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) (limited to 'pelicanconf.py') diff --git a/pelicanconf.py b/pelicanconf.py index c9b1cc2..9ded28c 100755 --- a/pelicanconf.py +++ b/pelicanconf.py @@ -31,15 +31,26 @@ DEFAULT_PAGINATION = FEED_MAX_ITEMS ARTICLE_URL = u'{date:%Y}/{date:%m}/{slug}/' ARTICLE_SAVE_AS = u'{date:%Y}/{date:%m}/{slug}/index.html' +STATIC_SAVE_AS=u'{path}' + STATIC_PATHS = ['images', 'resources'] THEME = 'theme' TYPOGRIFY = True TEMPLATE_PAGES = {'../extras/404.html': '404.html'} -FILES_TO_COPY = ( - ('../extras/htaccess', '.htaccess'), - ('../extras/robots.txt', 'robots.txt'), -) + +STATIC_PATHS = [ + 'images', + 'resources', + '../extras/robots.txt', + '../extras/htaccess', + ] + +EXTRA_PATH_METADATA = { + '../extras/robots.txt': {'path': 'robots.txt'}, + '../extras/htaccess': {'path': '.htaccess'}, + } + PLUGIN_PATH = 'plugins' -- cgit v1.2.3