-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpelicanconf.py
119 lines (100 loc) · 3.14 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
#!/usr/bin/env python
AUTHOR = "André Anjos"
COPYRIGHT_NAME = AUTHOR
COPYRIGHT_YEAR = str(__import__("datetime").date.today().year)
SITENAME = "André Anjos"
SITETITLE = "André Anjos"
SITESUBTITLE = "Machine Learning, Computer Vision, Medical Artificial Intelligence, Reproducibility, Ph.D."
SITEDESCRIPTION = "Professional Website"
SITELOGO = "/images/profile_128.png"
FAVICON = "/images/favicon.ico"
APPLE_TOUCH_ICON = "/images/profile_128.png"
SITEURL = "https://anjos.ai"
# Theme setup
THEME = "theme"
BROWSER_COLOR = "#333"
# Static directories
STATIC_PATHS = (
"css",
"images",
)
# Extra CSS customization
EXTRA_PATH_METADATA = {
"css/custom.css": {"path": "css/custom.css"},
}
CUSTOM_CSS = "css/custom.css"
ROBOTS = "index, follow"
PATH = "content"
DELETE_OUTPUT_DIRECTORY = True
TIMEZONE = "Europe/Zurich"
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
# Pages that should be rendered
DIRECT_TEMPLATES = ["index"]
# Links in the front page, aside from the static ``pages``
LINKS = (
("CV", "https://anjos.ai/cv/cv.pdf"),
("Research", "/research/"),
("Publications", "/publications/"),
("Supervised Students", "/theses/"),
("Courses", "/courses/"),
("Software", "/software/"),
("Talks & Media", "/media/"),
("About", "/about/"),
("Short Bio", "/short-bio/"),
("Contact", "/contact/"),
)
# Social widget
SOCIAL = (
("orcid", "https://orcid.org/0000-0001-7248-4014"),
("google-scholar", "https://scholar.google.ch/citations?user=pAfLhMoAAAAJ"),
("linkedin", "https://www.linkedin.com/in/andreranjos/"),
("stack-overflow", "https://stackoverflow.com/users/712525/andré-anjos"),
("github", "https://github.com/anjos"),
("gitlab", "https://gitlab.idiap.ch/medai/software"),
)
PLUGINS = [
"deadlinks",
"pelican_fontawesome",
"pybtex",
]
DEFAULT_PAGINATION = False
DISABLE_URL_HASH = True # don't put hashes by the end of urls
DISPLAY_PAGES_ON_MENU = False
DISPLAY_CATEGORIES_ON_MENU = False
OUTPUT_RETENTION = [
"CNAME",
]
# URL organization
ARTICLE_URL = "{category}/{slug}/"
ARTICLE_SAVE_AS = "{category}/{slug}/index.html"
CATEGORY_URL = "{slug}/"
CATEGORY_SAVE_AS = "{slug}/index.html"
PAGE_URL = "{slug}/.html"
PAGE_SAVE_AS = "{slug}/index.html"
PUBLICATIONS_SAVE_AS = "publications/index.html"
# Uncomment following line if you want document-relative URLs when developing
RELATIVE_URLS = True
# Set to ``True`` the following line to enable link-checking
DEADLINKS_VALIDATION = False
DEADLINKS_OPTS = {
"archive": False,
"timeout_duration_ms": 10000,
"classes": ["disabled"],
}
# Where is the location of your BibTeX database
PYBTEX_SOURCES = ["content/data/publications.bib"]
PYBTEX_ADD_ENTRY_FIELDS = ["pdf", "poster"]
THEME_TEMPLATES_OVERRIDES = ["templates"]
# Theme configuration options
# USE_LESS = True #set to "True" to test theme changes
THEME_COLOR = "light"
THEME_COLOR_AUTO_DETECT_BROWSER_PREFERENCE = True
THEME_COLOR_ENABLE_USER_OVERRIDE = True
PYGMENTS_STYLE = "solarized-light"
PYGMENTS_STYLE_DARK = "solarized-dark"