-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpelicanconf.py
109 lines (80 loc) · 1.77 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
#!/usr/bin/env python
import os
AUTHOR = 'Open Data Team'
SITENAME = 'getudata.org'
TAGS = ('opendata', 'data')
# PATH = 'articles'
TIMEZONE = 'Europe/Paris'
DEFAULT_LANG = 'en'
THEME = 'theme'
PATH = os.path.dirname(__file__)
OUTPUT_PATH = os.path.join(PATH, 'output')
ARTICLE_PATHS = [
'articles',
]
CONTACT_EMAIL = '[email protected]'
# PAGE_PATHS = [
# 'pages',
# ]
# 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
DEFAULT_PAGINATION = 10
# Uncomment following line if you want document-relative URLs when developing
#RELATIVE_URLS = True
STATIC_PATHS = [
'images',
]
PLUGIN_PATHS = [
'plugins',
]
PLUGINS = [
'sitemap',
'frontmark',
'data',
'related_posts',
'jinja_tools',
]
DATA_PATHS = [
'data',
]
DATA = [
'home.yml',
'identity.yml',
'showcase',
'plugins',
]
TEMPLATE_PAGES = {
# 'templates/index.html': 'index.html'
}
# Serve the blog on /blog/
# INDEX_URL = 'blog.html'
# INDEX_SAVE_AS = 'blog.html'
ARTICLE_URL = 'blog/{date:%Y}/{date:%m}/{date:%d}/{slug}.html'
ARTICLE_SAVE_AS = 'blog/{date:%Y}/{date:%m}/{date:%d}/{slug}.html'
CATEGORY_URL = 'blog/category/{slug}.html'
CATEGORY_SAVE_AS = 'blog/category/{slug}.html'
TAG_URL = 'blog/tag/{slug}.html'
TAG_SAVE_AS = 'blog/tag/{slug}.html'
PAGE_URL = '{slug}.html'
PAGE_SAVE_AS = '{slug}.html'
SITEMAP = {
'format': 'xml',
'priorities': {
'articles': 0.5,
'indexes': 0.5,
'pages': 0.5
},
'changefreqs': {
'articles': 'daily',
'indexes': 'daily',
'pages': 'monthly'
}
}
RELATED_POSTS_MAX = 3
MENUITEMS = (
('Documentation', 'https://udata.readthedocs.io'),
)