This repository has been archived by the owner on Feb 16, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
pelicanconf.py
78 lines (60 loc) · 2.12 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
AUTHOR = u'Toulibre'
SITENAME = u'Capitole du Libre - le blog'
SITEURL = 'http://localhost:8000'
SITEDESCRIPTION = u'L\'événement du Logiciel Libre à Toulouse'
# CDL infos
CDL_DATE = u'19-20 novembre 2016'
CDL_YEAR = u"2016"
CDL_TAG = u'#cdl%s' % CDL_YEAR
CDL_URL_BASE = 'https://%s.capitoledulibre.org/' % CDL_YEAR
# Theme
THEME = 'cdltheme-blog'
CSS_FILE = 'styles.min.css'
PATH = 'src'
PLUGIN_PATHS = ["pelican-plugins"]
PLUGINS = ['md_inline_extension']
TIMEZONE = 'Europe/Paris'
DEFAULT_LANG = u'fr'
ARTICLE_PATHS = ['blog']
ARTICLE_EXCLUDES = ['liens']
ARTICLE_URL = '{date:%Y}/{date:%m}-{date:%d}-{slug}.html'
ARTICLE_SAVE_AS = '{date:%Y}/{date:%m}-{date:%d}-{slug}.html'
ARTICLE_LANG_URL = '{date:%Y}/{date:%m}-{date:%d}-{slug}-{lang}.html'
ARTICLE_LANG_SAVE_AS = '{date:%Y}/{date:%m}-{date:%d}-{slug}-{lang}.html'
# static paths will be copied under the same name
STATIC_PATHS = ["blog", "photos",]
# Menus
DISPLAY_PAGES_ON_MENU = False
DISPLAY_CATEGORIES_ON_MENU = False
MENUITEMS = (
('Accueil', CDL_URL_BASE),
('Programme', '%sprogramme.html' % CDL_URL_BASE),
('Animations', '%s#animations' % CDL_URL_BASE),
('Partenaires', '%s#partenaires' % CDL_URL_BASE),
('Venir', '%s#venir' % CDL_URL_BASE),
)
# 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 = (
('Toulibre', 'http://www.toulibre.org/'),
('Ubuntu-fr', 'http://www.ubuntu-fr.org/'),
)
# Social widget
SOCIAL = (
('Identica', 'identica', 'http://identi.ca/toulibreorg'),
('Twitter', 'twitter', 'https://twitter.com/toulibreorg'),
('Google+', 'google', 'https://plus.google.com/b/109128243242581226442/109128243242581226442/posts'),
('Lanyrd', 'lanyrd', 'http://lanyrd.com/2013/capitole-du-libre/'),
)
TWITTER_USERNAME = 'Toulibreorg'
DEFAULT_PAGINATION = 10
# Uncomment following line if you want document-relative URLs when developing
#RELATIVE_URLS = True