-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpelicanconf.py
89 lines (68 loc) · 2.29 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
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
import datetime
AUTHOR = 'Dmytro Litvinov'
SITENAME = 'DevBlog with love'
SITEURL = ''
SITETITLE = AUTHOR
SITESUBTITLE = 'Full Stack Python developer'
SITEDESCRIPTION = '{}\'s Thoughts and Writings'.format(AUTHOR)
SITELOGO = '//github.com/DmytroLitvinov.png'
FAVICON = '/images/favicon.png'
BROWSER_COLOR = '#9cb2ce'
PYGMENTS_STYLE = 'paraiso-dark'
THEME = 'Flex'
PATH = 'content'
DISABLE_URL_HASH = True
TIMEZONE = 'Europe/Kiev'
LOCALE = 'uk_UA'
DEFAULT_LANG = 'en'
# 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
USE_FOLDER_AS_CATEGORY = False
MAIN_MENU = True
# Menu items
MENUITEMS = (('Archives', '/archives'),
('Categories', '/categories'),
('Tags', '/tags'),)
# Plugins
PLUGIN_PATHS = ['pelican-plugins']
PLUGINS = ['sitemap', 'post_stats']
# URL settings(http://docs.getpelican.com/en/stable/settings.html#url-settings)
ARTICLE_URL = '{date:%Y}/{date:%m}/{date:%d}/{slug}'
ARTICLE_SAVE_AS = '{date:%Y}/{date:%m}/{date:%d}/{slug}/index.html'
PAGE_URL = '{slug}'
PAGE_SAVE_AS = '{slug}/index.html'
DEFAULT_CATEGORY = 'Dev'
# Blogroll
# LINKS = (('Pelican', 'http://getpelican.com/'),
# ('Python.org', 'http://python.org/'),
# ('Jinja2', 'http://jinja.pocoo.org/'),
# ('You can modify those links in your config file', '#'),)
# Social widget
SOCIAL = (('linkedin', 'https://linkedin.com/in/DmytroLitvinov/'),
('twitter', 'https://twitter.com/DmytroLitvinov'),
('github', 'https://github.com/DmytroLitvinov'),
('gitlab', 'https://gitlab.com/DmytroLitvinov'))
DEFAULT_PAGINATION = 6
STATIC_PATHS = ['images', 'extra']
EXTRA_PATH_METADATA = {
'extra/custom.css': {'path': 'static/custom.css'},
'extra/robots.txt': {'path': 'robots.txt'},
'extra/CNAME': {'path': 'CNAME'}
}
CUSTOM_CSS = 'static/custom.css'
# Creative Commons Licensing
CC_LICENSE = {
'name': 'Creative Commons Attribution-ShareAlike',
'version': '4.0',
'slug': 'by-sa'
}
COPYRIGHT_YEAR = datetime.date.today().year
# Uncomment following line if you want document-relative URLs when developing
#RELATIVE_URLS = True