forked from capitoledulibre/2013.capitoledulibre.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpelicanconf.py
63 lines (50 loc) · 1.84 KB
/
pelicanconf.py
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
AUTHOR = u"Toulibre"
SITENAME = u"Capitole du Libre"
#~ SITEURL = 'http://www.capitoledulibre.org/2012'
SITEURL = 'http://localhost:8000'
SITEDESCRIPTION = u'L\'événement autour de Logiciel Libre à Toulouse'
THEME = 'cdltheme-2012'
CSS_FILE = 'styles.css'
PLUGINS = ['pelican.plugins.html_rst_directive',]
DELETE_OUTPUT_DIRECTORY = True
ARTICLE_DIR = 'blog'
ARTICLE_EXCLUDES = ('','blog','intervenants',)
PAGE_DIR = 'pages'
PAGE_EXCLUDES = ('blog','intervenants',)
ARTICLE_URL = 'blog/{date:%Y}/{date:%m}/{date:%d}/{slug}.html'
ARTICLE_SAVE_AS = 'blog/{date:%Y}/{date:%m}/{date:%d}/{slug}.html'
ARTICLE_LANG_URL = 'blog/{date:%Y}/{date:%m}/{date:%d}/{slug}-{lang}.html'
ARTICLE_LANG_SAVE_AS = 'blog/{date:%Y}/{date:%m}/{date:%d}/{slug}-{lang}.html'
PAGE_URL = '{slug}.html'
PAGE_SAVE_AS = '{slug}.html'
PAGE_LANG_URL = '{slug}-{lang}.html'
PAGE_LANG_SAVE_AS = '{slug}-{lang}.html'
DISPLAY_PAGES_ON_MENU = False
MENUITEMS = (('Programme', SITEURL + '/programme.html'),
('Sponsors', SITEURL + '/sponsors.html'),
('Informations pratiques', SITEURL + '/informations-pratiques.html'),)
SOCIAL = (('twitter', 'http://twitter.com/Toulibreorg'),)
TIMEZONE = 'Europe/Paris'
DATE_FORMAT = {
'fr': ('fr_FR','%d %b %Y'),
'en': ('en_US','%a, %d %b %Y'),
}
DEFAULT_LANG='fr'
# Blogroll
LINKS = (
('Toulibre', 'http://www.toulibre.org/'),
('Ubuntu-fr', 'http://www.ubuntu-fr.org/'),
)
# Social widget
SOCIAL = (
('Twitter', 'https://twitter.com/toulibreorg'),
('Lanyrd', 'http://lanyrd.com/2012/capitole-du-libre/'),
)
TWITTER_USERNAME = 'Toulibreorg'
DEFAULT_PAGINATION = 4
# static paths will be copied under the same name
STATIC_PATHS = ["files","logos","photos",]
RELATIVE_URLS = False
DIRECT_TEMPLATE = ('index', 'tags', 'categories', 'archives')