-
Notifications
You must be signed in to change notification settings - Fork 0
/
pelicanconf.py
71 lines (54 loc) · 1.83 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
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
AUTHOR = 'Joao Moreira'
SITENAME = 'Joao Moreira'
SITESUBTITLE = 'Data Scientist'
SITEURL = ''
BIO = 'Data scientist. Iron Man fan.'
PROFILE_IMAGE = 'avatar.jpg'
PATH = 'content'
STATIC_PATHS = ['images', 'pdfs', 'extra']
EXTRA_PATH_METADATA = {
'extra/CNAME': {'path': 'CNAME'},
'extra/favicon.png': {'path': 'favicon.png'},
'extra/apple-touch-icon.png': {'path': 'apple-touch-icon.png'}
}
FAVICON = EXTRA_PATH_METADATA['extra/favicon.png']['path']
APPLE_ICON = EXTRA_PATH_METADATA['extra/apple-touch-icon.png']['path']
PLUGIN_PATHS = ['pelican-plugins']
PLUGINS = ['assets']
# Disable caching and versioning of static resources since GitHub pages
# caches stuff for only 10 mins
ASSET_CONFIG = (
('url_expire', False),
('manifest', False),
('cache', False),
)
TIMEZONE = 'America/Chicago'
DEFAULT_LANG = 'en'
DEFAULT_DATE_FORMAT = '%B %-d, %Y'
THEME = 'pelican-hyde'
DISPLAY_PAGES_ON_MENU = True
LOAD_CONTENT_CACHE = False
# Feed generation is usually not desired when developing
FEED_ALL_ATOM = 'feeds/all.atom.xml'
CATEGORY_FEED_ATOM = None
TRANSLATION_FEED_ATOM = None
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None
# Obfuscate email with: http://www.jottings.com/obfuscator/
# Then replace your `coded` and `key` js variables below
EMAIL_CODED = 'dZ8Z.8J.kZ3ME38@Jk8EF.LZk'
EMAIL_KEY = '59bOciUfrngQj8xYMmzwFCAyhPBuGLEvt3sJodq1X7k6NpW4TSaIHeVKRl2D0Z'
# Social widget
SOCIAL = (
# Email obfuscated using the above variables
('email', ''),
('github-square', 'https://github.com/jagmoreira'),
('linkedin', 'https://www.linkedin.com/in/joao-moreira'),
)
DEFAULT_PAGINATION = 10
# Uncomment following line if you want document-relative URLs when developing
#RELATIVE_URLS = True
YEAR_ARCHIVE_SAVE_AS = 'posts/{date:%Y}/index.html'