pelicanconf.py 1.26 KB
Newer Older
Maxime Vidori's avatar
Maxime Vidori committed
1
2
3
4
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals

5
6
import filters

Maxime Vidori's avatar
Maxime Vidori committed
7
8
9
10
11
12
13
14
15
16
17
AUTHOR = u'gitoyen'
SITENAME = u'Gitoyen'
SITEURL = ''

PATH = 'content'

TIMEZONE = 'Europe/Paris'

DEFAULT_LANG = u'fr'

# Feed generation is usually not desired when developing
18
FEED_DOMAIN = 'https://gitoyen.net'
Maxime Vidori's avatar
Maxime Vidori committed
19
FEED_ALL_ATOM = None
20
FEED_ALL_RSS = 'feeds/all.rss.xml'
Maxime Vidori's avatar
Maxime Vidori committed
21
CATEGORY_FEED_ATOM = None
sebian's avatar
sebian committed
22
CATEGORY_FEED_RSS = 'feeds/{slug}.rss.xml'
Maxime Vidori's avatar
Maxime Vidori committed
23
24
25
TRANSLATION_FEED_ATOM = None
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None
26
RSS_FEED_SUMMARY_ONLY = False
Maxime Vidori's avatar
Maxime Vidori committed
27

28
29
30
# Social
TWITTER_USERNAME = 'gitoyen'

31

32
33
JINJA_FILTERS = {'is_active': filters.is_active}

34
THEME = './theme'
Maxime Vidori's avatar
Maxime Vidori committed
35
36
37

DEFAULT_PAGINATION = 10

Maxime Vidori's avatar
Maxime Vidori committed
38
39
ARTICLE_PATHS = ['blog']
ARTICLE_URL = 'blog/{slug}.html'
40
ARTICLE_SAVE_AS = 'blog/{slug}.html'
Maxime Vidori's avatar
Maxime Vidori committed
41
42
43
44

PAGE_URL = '{slug}.html'
PAGE_SAVE_AS = '{slug}.html'

45
INDEX_SAVE_AS = 'blog.html'
Maxime Vidori's avatar
Maxime Vidori committed
46
PLUGIN_PATHS = ['plugins']
Maxime Vidori's avatar
Update    
Maxime Vidori committed
47
PLUGINS = ['pelican-toc']
Maxime Vidori's avatar
Maxime Vidori committed
48

plb's avatar
plb committed
49
STATIC_PATHS = ['images', 'extra/favicon.ico', 'upload' ]
Adèle's avatar
Adèle committed
50

Maxime Vidori's avatar
Update    
Maxime Vidori committed
51
TOC = {
52
    'TOC_HEADERS': '^h[2]',
Maxime Vidori's avatar
Update    
Maxime Vidori committed
53
54
55
    'TOC_RUN': 'true'
}

Maxime Vidori's avatar
Maxime Vidori committed
56
MD_EXTENSIONS = ['attr_list', 'codehilite(css_class=highlight)', 'extra']
Maxime Vidori's avatar
Maxime Vidori committed
57
# Uncomment following line if you want document-relative URLs when developing
58
# RELATIVE_URLS = True
Adèle's avatar
Adèle committed
59
60
61
62

EXTRA_PATH_METADATA = {
    'extra/favicon.ico': {'path': 'favicon.ico'}
}