pelicanconf.py 1.34 KB
Newer Older
Jérôme Ortais's avatar
Jérôme Ortais committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
#!/usr/bin/env python3

AUTHOR = 'Jérôme'
SITENAME = 'Pyromaths'
SITEURL = ''

# 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',
]

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"]
49
OUTPUT_PATH = "public"
Jérôme Ortais's avatar
Jérôme Ortais committed
50 51 52 53 54 55 56 57 58 59 60 61

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']
CSS_FILE = 'style.css'