-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpelicanconf.py
140 lines (111 loc) · 3.27 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
import os
import os.path as op
AUTHOR = u'Alexandre Manhães Savio'
SITENAME = u'Interlines'
SITESUBTITLE = u'Lost in spikes'
SITEURL = 'https://alexsavio.github.io'
TIMEZONE = 'Europe/Paris'
DEFAULT_LANG = u'en_US'
THEME = 'themes/pure'
COVER_IMG_URL = 'imgs/blog_wallpaper.jpeg'
PROFILE_IMAGE_URL = 'imgs/neurita.png'
TAGLINE = 'Software Engineer. Cloud, IoT, DevOps, neuroimaging, machine-learning, Python and C++ coder. ACPySS and ex-EuroPython.'
PDF_GENERATOR = True
OUTPUT_PATH = 'output'
DELETE_OUTPUT_DIRECTORY = False
PLUGIN_PATHS = [op.join(op.dirname(op.realpath(__file__)), 'plugins')]
PLUGINS = [
'assets',
'sitemap',
'code_include',
'ical',
'gravatar',
'feed_summary',
'read_more_link',
'render_math',
'liquid_tags',
'optimize_images',
'summary',
'thumbnailer',
'github_activity',
'better_codeblock_line_numbering',
'dateish',
]
SITEMAP = {
'format': 'xml',
'priorities': {
'articles': 0.5,
'indexes': 0.5,
'pages': 0.5,
},
'changefreqs': {
'articles': 'daily',
'indexes': 'daily',
'pages': 'monthly',
},
}
# Feed generation is usually not desired when developing
FEED_ALL_ATOM = u'feeds/all.atom.xml'
CATEGORY_FEED_ATOM = u'feeds/{slug}.atom.xml'
FEED_ALL_RSS = u'feeds/all.rss.xml'
CATEGORY_FEED_RSS = u'feeds/{slug}.rss.xml'
# Blogroll
LINKS = (
('Pelican', 'http://getpelican.com/'),
('Python.org', 'http://python.org/'),
)
# Social widget
SOCIAL = (
('twitter-square', 'https://twitter.com/alex_savio'),
('github', 'https://github.com/alexsavio'),
)
TWITTER_USERNAME = 'alex_savio'
GITHUB_URL = 'https://github.com/alexsavio'
GITHUB_ACTIVITY_FEED = 'https://github.com/alexsavio.atom'
#PAGINATION
DEFAULT_PAGINATION = 10
#PAGINATION_PATTERNS = (
# (1, '{base_name}/', '{base_name}/index.html'),
# (2, '{base_name}/page/{number}/', '{base_name}/page/{number}/index.html'),
#)
# Take advantage of the following defaults
# STATIC_SAVE_AS = '{path}'
# STATIC_URL = '{path}'
PATH = 'content'
STATIC_PATHS = [
'imgs',
'extra/robots.txt',
'keybase.txt',
]
#TEMPLATE_PAGES = {'pages/about.md': 'about.html',}
# '/resume.': 'resume.html',
# 'pages/contact.html': 'contact.html'}
# code blocks with line numbers
PYGMENTS_RST_OPTIONS = {'classprefix': 'pgcss', 'linenos': 'table'}
MENUITEMS = [#('About', 'about.html'),
('About Me', 'http://www.ehu.es/ccwintco/index.php?title=Usuario:Alexsavio'),
('ORCID', 'https://orcid.org/0000-0002-6608-6885'),
('Surf-Forecast', 'http://www.surf-forecast.com/breaks/Zarautz/forecasts/latest/six_day'),
]
DATE_FORMATS = {
'en_US': '%a, %b %d %Y',
}
# Uncomment following line if you want document-relative URLs when developing
RELATIVE_URLS = False
DISPLAY_PAGES_ON_MENU = True
MARKDOWN = {
'extension_configs': {
'markdown.extensions.codehilite': {'css_class': 'highlight'},
'markdown.extensions.extra': {},
'markdown.extensions.meta': {},
},
'output_format': 'html5',
}
MARKUP = ('rst', 'md', 'ipynb')
OUTPUT_SOURCES = 'True'
OUTPUT_SOURCES_EXTENSION = '.txt'
TYPOGRIFY = True
GITHUB_ACTIVITY_MAX_ENTRIES = 5