-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpelicanconf.py
94 lines (79 loc) · 2.6 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
SITENAME = "Blog like it's 2002"
SITESUBTITLE = 'tech and stuff'
SITEURL = ""
TIMEZONE = 'Europe/Brussels'
DEFAULT_LANG = 'en'
AUTHOR = "Fabien Rica"
SITEDESCRIPTION = "I'm Fabien Rica, a technology enthusiast, dad, and a French person living in Belgium. I write about programming, books, and whatever I think is important for me."
# Path to content directory to be processed by Pelican
PATH = "content"
# Path to static resources
STATIC_PATHS = ['images', 'extra', 'pages/assets']
PLUGIN_PATHS = ['pelican-plugins']
PAGE_PATHS = ['pages']
# overly complex config for a simple favicon but ok
EXTRA_PATH_METADATA = {
"extra/favicon.ico": {"path": "favicon.ico"},
"extra/robots.txt": {"path": "robots.txt"}
}
# Main Menu
MAIN_MENU = True
DISPLAY_PAGES_ON_MENU = False
DISPLAY_CATEGORIES_ON_MENU = False
MENUITEMS = (
('Home', 'index.html'),
('Tech', 'category/tech.html'),
('Books', 'category/books.html'),
('Misc', 'category/misc.html'),
('Notes', 'category/notes.html'),
('About', 'pages/about.html')
)
# European date format
DEFAULT_DATE_FORMAT = '%d-%m-%Y'
# provide a list of paths to overrides files in original template
# THEME_TEMPLATES_OVERRIDES = ['./themes/templates/overrides']
THEME = 'themes/mytheme'
# post_stats only works if you update the template
PLUGINS = ['liquid_tags',
'sitemap']
SITEMAP = {
'format': 'xml',
'exclude': ['tag/', 'category/'],
'changefreqs': {
'articles': 'daily',
'pages': 'monthly',
'indexes': 'daily'
}
}
LIQUID_TAGS = ["img", "literal", "video", "youtube",
"vimeo"]
# 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
DEFAULT_PAGINATION = False
# Uncomment following line if you want document-relative URLs when developing
#RELATIVE_URLS = True
# Default code highlighting in the theme - replaced by Pygments
# MARKDOWN = {
# 'extension_configs': {
# 'markdown.extensions.meta': {},
# 'markdown.extensions.extra': {},
# 'markdown.extensions.codehilite': {'css_class': 'codehilite'},
# },
# 'output_format': 'html5',
# }
HIDE_AUTHORS = True
# customized to make admonition work but it doesn't
#MARKDOWN = {
# 'extension_configs': {
# 'markdown.extensions.codehilite': {'css_class': 'highlight'},
# 'markdown.extensions.extra': {},
# 'markdown.extensions.meta': {},
# 'markdown.extensions.admonition':{}
# },
# 'output_format': 'html5',
#}
# BOOTSTRAP_CSS = 'http://bootswatch.com/3/united/bootstrap.min.css'