-
Notifications
You must be signed in to change notification settings - Fork 0
/
pelicanconf.py
94 lines (72 loc) · 2.62 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
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
AUTHOR = "Diego Quintana"
SITENAME = "Moving rocks around"
SITEURL = ""
PATH = "content"
TIMEZONE = "Europe/Madrid"
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 = (('Pelican', 'http://getpelican.com/'),
# ('Python.org', 'http://python.org/'),
# ('Jinja2', 'http://jinja.pocoo.org/'),
# ('You can modify those links in your config file', '#'),)
# Social widget
# SOCIAL = (('You can add links in your config file', '#'),
# ('Another social link', '#'),)
DEFAULT_PAGINATION = 5
# publish everything as draft unless explictly specified otherwise
DEFAULT_METADATA = {"status": "draft"}
# Uncomment following line if you want document-relative URLs when developing
# RELATIVE_URLS = True
THEME = "themes/pelican-alchemy/alchemy"
MARKUP = ("md", "ipynb")
from pelican_jupyter import markup as nb_markup
PLUGINS = [nb_markup]
# pelican-resume settings
# https://github.com/cmenguy/pelican-resume#settings
# RESUME_SRC
# RESUME_PDF
# RESUME_TYPE
# RESUME_CSS_DIR
# --- pelican-alchemy settings --------------------------------------
# https://github.com/nairobilug/pelican-alchemy/wiki/Settings
SITESUBTITLE = "Diego Quintana's blog"
SITEIMAGE = "/images/profile.jpg width=400 height=400"
HIDE_AUTHORS = True
ICONS = (
("github", "https://github.com/diegoquintanav"),
("linkedin", "https://www.linkedin.com/in/diego-quintana-valenzuela/"),
("stack-overflow", "https://stackoverflow.com/users/5819113/bluesmonk"),
("spotify", "https://open.spotify.com/user/11102438968?si=a22574d2e0214ba8"),
)
STATIC_PATHS = ["extras", "images"]
# PYGMENTS_STYLE = 'monokai'
PYGMENTS_STYLE = "borland"
# RFG_FAVICONS = True
THEME_CSS_OVERRIDES = ["theme/css/customstyle.css"]
DIRECT_TEMPLATES = ["index", "tags", "categories", "authors", "archives", "sitemap"]
# --- pelican plugins settings ---------------------
# ipynb
# if you create jupyter files in the content dir, snapshots are saved with the same
# metadata. These need to be ignored.
IGNORE_FILES = [".ipynb_checkpoints"]
IPYNB_GENERATE_SUMMARY = True
IPYNB_FIX_CSS = True
IPYNB_EXPORT_TEMPLATE = "./themes/nb_templates/custom.tpl"
MARKDOWN = {
"extension_configs": {
"markdown.extensions.toc": {"title": ""},
"markdown.extensions.codehilite": {"css_class": "highlight"},
"markdown.extensions.extra": {},
"markdown.extensions.meta": {},
},
"output_format": "html5",
}