forked from pawelngei/alxd.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpelicanconf.py
69 lines (53 loc) · 1.61 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
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
from datetime import datetime
AUTHOR = 'Pawel Ngei'
SITENAME = 'alxd'
SITETITLE = 'alxd'
SITESUBTITLE = u'hacker with a story to tell'
SITEURL = 'https://alxd.org'
SITELOGO = '/images/logo-circ.png'
# FAVICON = '/images/favicon.ico'
BROWSER_COLOR = '#333333'
PYGMENTS_STYLE = 'monokai'
USE_FOLDER_AS_CATEGORY = False
MAIN_MENU = True
HOME_HIDE_TAGS = True
USE_GOOGLE_FONTS = False
MENUITEMS = (('Archives', '/archives.html'),)
SOCIAL = (
('envelope', 'mailto:alxd (AT) alxd.org'),
('mastodon', 'https://chaos.social/@alxd'),
('github', 'https://github.com/pawelngei'),
('twitter', 'https://twitter.com/pawelngei'),
('linkedin', 'https://www.linkedin.com/in/pawel-ngei-19227983/'),
('rss', 'feeds/all.atom.xml'),
)
CC_LICENSE = {
'name': 'Creative Commons Attribution-ShareAlike',
'version': '4.0',
'slug': 'by-sa',
'local_icons': True
}
COPYRIGHT_YEAR = datetime.now().year
DEFAULT_PAGINATION = 5
TIMEZONE = 'Europe/Warsaw'
I18N_TEMPLATES_LANG = 'en'
DEFAULT_LANG = 'en'
OG_LOCALE = 'en_US'
LOCALE = 'en_US'
# Feed generation is usually not desired when developing
FEED_ALL_ATOM = 'feeds/all.atom.xml'
CATEGORY_FEED_ATOM = None
TRANSLATION_FEED_ATOM = None
PATH = 'content'
STATIC_PATHS = ['images', 'slides', 'content/slides', 'scripts']
THEME = "themes/Flex"
PLUGIN_PATHS = ['pelican-plugins']
PLUGINS = ['post_stats']
DISPLAY_PAGES_ON_MENU = True
DEFAULT_PAGINATION = False
SUMMARY_MAX_LENGTH = 175
# Uncomment following line if you want document-relative URLs when developing
RELATIVE_URLS = True