-
Notifications
You must be signed in to change notification settings - Fork 0
/
pelicanconf.py
201 lines (179 loc) · 4.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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
from datetime import date
#################
# GENERAL SECTION
#################
AUTHOR = u''
SITENAME = u''
SITEURL = ''
SITEDESCRIPTION = ""
BLOGNAME = u''
BLOG_OG_IMAGE = ''
CSS_PATH = 'css'
IMG = "theme/img"
IMAGES_PATH = 'theme'
THEME = 'theme/dtheme'
LOCALE = 'en_US.utf8'
TIMEZONE = ''
DEFAULT_LANG = u'en'
TWITTERNAME = ""
COPY_YEAR = date.today().year
PATH = 'content'
STATIC_PATHS = ['extra']
MENUITEMS = (('BLOG', '/blog/'),('ABOUT', '/about/'),)
EXTRA_PATH_METADATA = {
'extra/robots.txt': {'path': 'robots.txt'},
'extra/sw.js': {'path': 'sw.js'},
'extra/manifest.json': {'path': 'manifest.json'},
'extra/privacy_policy.pdf': {'path': 'privacy_policy.pdf'},
'extra/.htaccess': {'path': '.htaccess'},
'extra/favicon.ico': {'path': 'favicon.ico'}
}
#################
# TRACKING SECTION
#################
GTM_HEAD = """"""
GTM_BODY = """"""
TRACKING = """"""
#################
# SCHEMA STRUCTURED DATA SECTION
#################
SCHEMA_WORKFOR = {
"": {
""
}
}
SCHEMA_ALUMNIOF = {
"": {
""
}
}
SCHEMA_JOB = ""
SCHEMA_PERSONAL_DESCRIPTION = ""
SCHEMA_LINK_SAMEAS = {
('', ''),
('', '')
}
SCHEMA_KNOWSABOUT = {
('', ''),
('', '')
}
#################
# VARIOUS
#################
FEED_DOMAIN = SITEURL
FEED_MAX_ITEMS = 10
RSS_FEED_SUMMARY_ONLY = True
FEED_ALL_RSS = 'feeds/all.rss.xml'
FEED_ALL_ATOM = None
CATEGORY_FEED_RSS = 'feeds/{slug}.rss.xml'
CATEGORY_FEED_ATOM = None
TRANSLATION_FEED_ATOM = None
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None
DIRECT_TEMPLATES = ['home','error','blog_index','sitemap']
DEFAULT_PAGINATION = False
PAGINATED_TEMPLATES = {'blog_index': 5, 'tag': 5, 'category': 5, 'author':None}
PAGINATION_PATTERNS = (
(1, '{url}', '{save_as}'),
(2, '{base_name}/{number}/', '{base_name}/{number}/index.html'),
)
ARTICLE_URL = 'blog/{slug}/'
ARTICLE_SAVE_AS = 'blog/{slug}/index.html'
ARTICLE_ORDER_BY = 'reversed-date'
AUTHOR_URL = 'about/'
AUTHOR_SAVE_AS = 'about/index.html'
HOME_URL = 'index.html'
HOME_SAVE_AS = 'index.html'
BLOG_INDEX_URL = 'blog/'
BLOG_INDEX_SAVE_AS = 'blog/index.html'
CATEGORY_URL = 'cat/{slug}/'
CATEGORY_SAVE_AS = 'cat/{slug}/index.html'
SITEMAP_URL = 'sitemap/'
SITEMAP_SAVE_AS = 'sitemap/index.html'
ERROR_URL = '404/'
ERROR_SAVE_AS = '404/index.html'
CERTIFICATION = True # if False it hides the certification section
CERTIFICATIONS = {
'': {
'url': '',
'title': '',
'img': '',
'alt_tag': ''
}
}
AUTHORS = {
'': {
'short_description': """""",
'description': """""",
'long_description': """""",
'work_description':"""""",
'url': '/about/',
'image_jpg': '/theme/img/author/***.jpg', # just add the file name
'image_webp': '/theme/img/author/***.webp', # just add the file name
'links': (('email', 'mailto:'),
('', ''),
('', ''),
('', ''),)
}
}
#################
# CATEGORIES SECTION
#################
CATEGORIES = {
'blog': {
'description': ".",
},
'': {
'description': '',
'logo_jpg': '/theme/img/cat/***.jpg', # just add the file name
'logo_webp': '/theme/img/cat/***.webp', # just add the file name
'project_info': True,
'project_description':'',
'project_tool':'',
'project_lang': '',
'project_version': '',
'project_links': '',
'project_author': ''
}
}
DISPLAY_CATEGORIES_ON_MENU = None
DISPLAY_PAGES_ON_MENU = None
RELATIVE_URLS = False
LOAD_CONTENT_CACHE = False
CACHE_CONTENT = False
#################
# PROJECTS SECTION INSIDE THE AUTHOR PAGE
#################
PROJECTS = {
'': {
'image_jpg':'',
'image_webp':'',
'alt_tag':'',
'description':""""""
}
}
#################
# PLUGIN SETTINGS
#################
PLUGIN_PATHS = ['plugin']
PLUGINS = ['pelican-readtime', 'sitemap', 'cover_resizer', 'neighbors', 'feed_link_decorator']
SITEMAP = {
"format": "xml",
"priorities": {
"articles": 1,
"indexes": 0.5,
"pages": 0.5
},
"changefreqs": {
"articles": "monthly",
"indexes": "weekly",
"pages": "monthly"
},
'exclude': ['tag/', 'category/', '404/']
}
# TOC = {
# 'TOC_INCLUDE_TITLE': 'false'
# }