forked from github/pelican
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.
53 lines
1.5 KiB
Python
Executable file
53 lines
1.5 KiB
Python
Executable file
# -*- coding: utf-8 -*-
|
|
from __future__ import unicode_literals
|
|
|
|
AUTHOR = 'Alexis Métaireau'
|
|
SITENAME = "Alexis' log"
|
|
SITEURL = 'http://blog.notmyidea.org'
|
|
TIMEZONE = "Europe/Paris"
|
|
|
|
# can be useful in development, but set to False when you're ready to publish
|
|
RELATIVE_URLS = True
|
|
|
|
GITHUB_URL = 'http://github.com/ametaireau/'
|
|
DISQUS_SITENAME = "blog-notmyidea"
|
|
PDF_GENERATOR = False
|
|
REVERSE_CATEGORY_ORDER = True
|
|
LOCALE = "C"
|
|
DEFAULT_PAGINATION = 4
|
|
DEFAULT_DATE = (2012, 3, 2, 14, 1, 1)
|
|
|
|
FEED_ALL_RSS = 'feeds/all.rss.xml'
|
|
CATEGORY_FEED_RSS = 'feeds/%s.rss.xml'
|
|
|
|
LINKS = (('Biologeek', 'http://biologeek.org'),
|
|
('Filyb', "http://filyb.info/"),
|
|
('Libert-fr', "http://www.libert-fr.com"),
|
|
('N1k0', "http://prendreuncafe.com/blog/"),
|
|
('Tarek Ziadé', "http://ziade.org/blog"),
|
|
('Zubin Mithra', "http://zubin71.wordpress.com/"),)
|
|
|
|
SOCIAL = (('twitter', 'http://twitter.com/ametaireau'),
|
|
('lastfm', 'http://lastfm.com/user/akounet'),
|
|
('github', 'http://github.com/ametaireau'),)
|
|
|
|
# global metadata to all the contents
|
|
DEFAULT_METADATA = (('yeah', 'it is'),)
|
|
|
|
# path-specific metadata
|
|
EXTRA_PATH_METADATA = {
|
|
'extra/robots.txt': {'path': 'robots.txt'},
|
|
}
|
|
|
|
# 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'}
|
|
|
|
# foobar will not be used, because it's not in caps. All configuration keys
|
|
# have to be in caps
|
|
foobar = "barbaz"
|