-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathpelicanconf.py
79 lines (64 loc) · 2.7 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
#!/usr/bin/env python
AUTHOR = 'Pybonacci'
SITENAME = 'Pybonacci'
SITESUBTITLE = u'Blog sobre Python científico en español'
SITEURL = ''
PATH = 'content'
TIMEZONE = 'Europe/Madrid'
DEFAULT_LANG = 'es'
LOCALE = 'es_ES.UTF-8'
# 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
# Set the article URL
ARTICLE_URL = '{date:%Y}/{date:%m}/{date:%d}/{slug}/'
ARTICLE_SAVE_AS = '{date:%Y}/{date:%m}/{date:%d}/{slug}/index.html'
DEFAULT_PAGINATION = 10
#SUMMARY_USE_FIRST_PARAGRAPH = True
SUMMARY_MAX_LENGTH = 140
# Uncomment following line if you want document-relative URLs when developing
#RELATIVE_URLS = True
#MARKUP = ('md', 'ipynb')
#PLUGINS = ['ipynb.markup']
MARKUP = ['md']
PLUGIN_PATHS = ['./plugins', './plugins/pelican-plugins']
PLUGINS = [
'summary', # auto-summarizing articles
'feed_summary', # use summaries for RSS, not full articles
'ipynb.liquid', # for embedding notebooks
'liquid_tags.img', # embedding images
'liquid_tags.video', # embedding videos
'liquid_tags.youtube', # embedding youtube videos
'liquid_tags.include_code', # including code blocks
'liquid_tags.literal',
#'footer_insert', # https://github.com/getpelican/pelican-plugins/tree/master/footer_insert
#'headerid', # https://github.com/getpelican/pelican-plugins/tree/master/headerid
#'gravatar', # https://github.com/getpelican/pelican-plugins/tree/master/gravatar
#'autopages', # https://github.com/getpelican/pelican-plugins/tree/master/autopages
#'simple_footnotes', # https://github.com/getpelican/pelican-plugins/tree/master/simple_footnotes
#'show_source', # https://github.com/getpelican/pelican-plugins/tree/master/show_source
#'series', # https://github.com/getpelican/pelican-plugins/tree/master/series
#'representative_image', # https://github.com/getpelican/pelican-plugins/tree/master/representative_image
]
IGNORE_FILES = ['.ipynb_checkpoints']
# for liquid tags
CODE_DIR = 'downloads/code'
NOTEBOOK_DIR = 'downloads/notebooks'
# THEME SETTINGS
THEME = './theme/'
ABOUT_PAGE = '/pages/acerca-de-pybonacci.html'
CONTRIBUTING_PAGE = '/pages/como-contribuir.html'
TWITTER_USERNAME = 'Pybonacci'
GITHUB_USERNAME = 'Pybonacci'
SHOW_ARCHIVES = True
SHOW_FEED = False # Need to address large feeds
ISSO_HOST = 'https://comments.pybonacci.org'
ENABLE_MATHJAX = True
STATIC_PATHS = ['images', 'figures', 'videos', 'downloads', 'favicon.ico', 'extra/CNAME']
EXTRA_PATH_METADATA = {'extra/CNAME': {'path': 'CNAME'}}
# Footer info
LICENSE_URL = "https://github.com/Pybonacci/pybonacci.github.io/blob/sources/LICENSE.md"
LICENSE_NAME = "CC BY-SA 4.0 + MIT"