-
Notifications
You must be signed in to change notification settings - Fork 0
/
pelicanconf.py
90 lines (76 loc) · 2.34 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
79
80
81
82
83
84
85
86
87
88
89
90
AUTHOR = 'RGOODS Tech team'
SITENAME = 'RGOODS Engineering'
SITETITLE = 'RGOODS Engineering'
SITESUBTITLE = (
'We are RGOODS tech team.<br />'
'We build cool tools to help associations & NGOs raise more funds.<br />'
'On this blog, we talk about Python/Django/Wagtail & VueJS.'
)
SITEURL = 'http://localhost:8000'
PATH = "content"
TIMEZONE = 'Europe/Paris'
COPYRIGHT_NAME = 'RGOODS'
# 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
LINKS = (
("misc", "/category/misc.html"),
("development", "/category/development.html"),
)
# Social widget
SOCIAL = (
("instagram", "https://www.instagram.com/rgoods_official/"),
("linkedin", "https://www.linkedin.com/company/rgoods/"),
('rss', '/feeds/all.atom.xml'),
)
DEFAULT_PAGINATION = False
MAIN_MENU = True
MENUITEMS = (
('Archives', '/archives.html'),
('Categories', '/categories.html'),
('Tags', '/tags.html'),
('EN', '/'),
('FR', '/fr'),
)
# Uncomment following line if you want document-relative URLs when developing
# RELATIVE_URLS = True
STATIC_PATHS = ['images']
THEME = "themes/Flex"
SITELOGO = "/images/logo.png"
FAVICON = "/images/favicon.ico"
PLUGIN_PATHS = ["plugins"]
PLUGINS = ["i18n_subsites"]
# Internationalisation
ARTICLE_TRANSLATION_ID = 'id'
DEFAULT_LANG = "en"
I18N_TEMPLATES_LANG = "en"
I18N_SUBSITES = {
'fr': {
'SITENAME': 'RGOODS Engineering',
'SITETITLE': 'RGOODS Engineering',
'SITESUBTITLE': (
"Nous sommes l'équipe tech RGOODS.<br />"
"Nous construisons des outils cool pour aider les associations et les ONGs à récolter plus de fonds.<br />"
"Sur ce blog, nous parlons principalement de Python/Django/Wagtail & VueJS."
),
'LINKS': (
("divers", "/fr/category/divers.html"),
("développement", "/category/developpement.html"),
("communauté", "/fr/category/communaute.html"),
),
'MENUITEMS': (
('Archives', '/fr/archives.html'),
('Catégories', '/fr/categories.html'),
('Tags', '/fr/tags.html'),
('EN', '/'),
('FR', '/fr'),
),
'DEFAULT_LANG': "fr"
}
}
JINJA_ENVIRONMENT = {
'extensions': ['jinja2.ext.i18n']
}