pelicanconf.py 1.75 KB
Newer Older
Jérôme Ortais's avatar
Jérôme Ortais committed
1 2 3 4
#!/usr/bin/env python3

AUTHOR = 'Jérôme'
SITENAME = 'Pyromaths'
5
SITEURL = 'https://www.pyromaths.org'
Jérôme Ortais's avatar
Jérôme Ortais committed
6 7 8 9 10 11 12 13 14 15 16 17 18 19

# can be useful in development, BUT SET TO FALSE WHEN YOU'RE READY TO PUBLISH
RELATIVE_URLS = True

USE_FOLDER_AS_CATEGORY = True
DEFAULT_CATEGORY = 'telecharger'

PATH = 'content'

# static paths will be copied without parsing their contents
STATIC_PATHS = [
    'images',
    '/files/js',
    '/files/styles',
20
    'extra/robots.txt'
Jérôme Ortais's avatar
Jérôme Ortais committed
21 22
]

23 24 25
EXTRA_PATH_METADATA = {
    'extra/robots.txt': {'path': 'robots.txt'},
    }
Jérôme Ortais's avatar
Jérôme Ortais committed
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
TIMEZONE = 'Europe/Paris'
DEFAULT_DATE_FORMAT = '%d %b %y'

DEFAULT_LANG = 'fr'

# Feed generation is usually not desired when developing
FEED_ALL_ATOM = None
CATEGORY_FEED_ATOM = None
TRANSLATION_FEED_ATOM = None
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None

# Blogroll
LINKS = (('Pelican', 'http://getpelican.com/'),
         ('Python.org', 'http://python.org/'),
         ('Jinja2', 'http://jinja.pocoo.org/'),
         ('You can modify those links in your config file', '#'),)

# Social widget
#SOCIAL = ((),)

DEFAULT_PAGINATION = 10

# Uncomment following line if you want document-relative URLs when developing
#RELATIVE_URLS = True
DELETE_OUTPUT_DIRECTORY = True
OUTPUT_RETENTION = [".git"]
53
OUTPUT_PATH = "public"
Jérôme Ortais's avatar
Jérôme Ortais committed
54 55 56 57 58 59 60 61 62 63 64

TYPOGRIFY = True

JINJA_ENVIRONMENT = {'trim_blocks': True, 'lstrip_blocks': True}

# code blocks with line numbers
PYGMENTS_RST_OPTIONS = {'linenos': 'table'}

THEME='theme'
THEME_STATIC_DIR = 'theme'
THEME_STATIC_PATHS = ['static']
65 66 67 68 69 70 71 72 73 74
CSS_FILE = 'style.css'

PLUGIN_PATHS = ['pelican-plugins']
PLUGINS = ['sitemap' ]

SITEMAP = {
    'format': 'xml',
    'exclude': ['tags.html', 'categories.html', 'tag/', 'author'],
}

75
AUTHOR_SAVE_AS = ''
76
AUTHORS_SAVE_AS = ''
77
CATEGORY_SAVE_AS = ''
78
CATEGORIES_SAVE_AS = ''
79
TAG_SAVE_AS = ''
80
TAGS_SAVE_AS = ''