/
pelicanconf.py
75 lines (56 loc) · 1.42 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
import os
import sys
from datetime import datetime
GOOGLE_ANALYTICS = None
try:
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)) + "\\")
from personal_configs import GOOGLE_ANALYTICS
except Exception as ex:
print("[e] exception: {}".format(str(ex)))
GOOGLE_ANALYTICS = os.environ.get("GOOGLE_ANALYTICS")
print(f"[i] using GOOGLE_ANALYTICS: {GOOGLE_ANALYTICS}")
AUTHOR = "vdmitriyev"
SITENAME = "Viktor's blog"
SITEURL = ""
COPYRIGHT_YEAR = datetime.now().year
PATH = "content"
TIMEZONE = "Europe/Berlin"
DEFAULT_LANG = "en"
LOCALE = "en_US.utf8"
DEFAULT_DATE_FORMAT = "%B %Y"
PAGE_PATHS = [
'pages'
]
DIRECT_TEMPLATES = [
'index',
'authors',
'categories',
'tags',
'archives',
'404',
]
# 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
PLUGINS = [
'neighbors', # find next, previous article
]
# Markdown extensions
# Social widget
SOCIAL = {
'facebook': "#",
'github' : 'https://github.com/vdmitriyev',
'twitter' : 'https://twitter.com/vdmitriyev',
'linkedin': "#"
}
DEFAULT_PAGINATION = 10
# Uncomment following line if you want document-relative URLs when developing
RELATIVE_URLS = True
OUTPUT_PATH = "blog-output"
DELETE_OUTPUT_DIRECTORY = True
STATIC_PATHS = ["images"]
#THEME = "pelican-twitchy"
THEME = "simplify-theme"