-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathpelicanconf.py
76 lines (62 loc) · 1.92 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
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
AUTHOR = "Dror Atariah"
SITENAME = "Dr. Dror"
SITESUBTITLE = 'Foo is not just a "Bar"'
SITEURL = "https://drorata.github.io"
PATH = "content"
TIMEZONE = "Europe/Paris"
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
# Blogroll
# LINKS = (
# ("LinkedIn", "https://www.linkedin.com/in/atariah"),
# ("GitHub", "http://github.com/drorata/"),
# )
ICONS = (
("github", "https://github.com/drorata"),
("linkedin", "https://www.linkedin.com/in/atariah"),
# ("fas fa-envelope", "mailto:[email protected]"),
)
# Social widget
SOCIAL = (
("You can add links in your config file", "#"),
("Another social link", "#"),
)
DEFAULT_PAGINATION = 10
DEFAULT_CATEGORY = "General"
DEFAULT_METADATA = {
"status": "draft",
}
DISPLAY_PAGES_ON_MENU = True
DISPLAY_CATEGORIES_ON_MENU = True
# Uncomment following line if you want document-relative URLs when developing
RELATIVE_URLS = True
ARTICLE_URL = "posts/{date:%Y}/{date:%b}/{date:%d}/{slug}/"
ARTICLE_SAVE_AS = "posts/{date:%Y}/{date:%b}/{date:%d}/{slug}/index.html"
STATIC_PATHS = ["images", "files", "extra/favicon.ico", "extra/keybase.txt"]
EXTRA_PATH_METADATA = {
"extra/favicon.ico": {"path": "favicon.ico"},
"extra/keybase.txt": {"path": "keybase.txt"},
}
MARKDOWN = {
"extension_configs": {
"markdown.extensions.codehilite": {"css_class": "highlight"},
"markdown.extensions.extra": {},
"markdown.extensions.toc": {},
"markdown.extensions.meta": {},
},
"output_format": "html5",
}
THEME = "themes/pelican-alchemy/alchemy"
SITEIMAGE = "/images/colored-spiral-of-roots.png width=90 height=90"
DISQUS_SITENAME = "dr-dror"
GOOGLE_ANALYTICS = "G-WH47T9F1TR"
# SEARCH_BOX = True
HIDE_AUTHORS = True