-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpelicanconf.py
More file actions
64 lines (54 loc) · 1.61 KB
/
pelicanconf.py
File metadata and controls
64 lines (54 loc) · 1.61 KB
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
AUTHOR = "Sohail Mohammad"
SITENAME = "Sohail Mohammad"
SITEURL = ""
PATH = "content"
TIMEZONE = "America/Chicago"
DEFAULT_LANG = "en"
FEED_ALL_ATOM = None
CATEGORY_FEED_ATOM = None
TRANSLATION_FEED_ATOM = None
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None
THEME = "theme"
SOCIAL = (
("github", "https://github.com/Sohailm25"),
("twitter", "https://x.com/Sohailmo"),
("linkedin", "https://www.linkedin.com/in/sohail-mo/"),
("email", "mailto:sohailmo.ai@gmail.com"),
)
CLOUDFLARE_ANALYTICS_TOKEN = ""
DEFAULT_PAGINATION = 10
RELATIVE_URLS = True
READERS = {"html": None}
STATIC_PATHS = ["images", "extra", "papers"]
EXTRA_PATH_METADATA = {
"extra/CNAME": {"path": "CNAME"},
}
# Map research directory to root /research/
import os
for root, dirs, files in os.walk("content/extra/research"):
for file in files:
filepath = os.path.join(root, file)
relpath = os.path.relpath(filepath, "content/extra")
EXTRA_PATH_METADATA[os.path.relpath(filepath, "content")] = {"path": relpath}
PAGE_URL = "pages/{slug}/"
PAGE_SAVE_AS = "pages/{slug}/index.html"
ARTICLE_URL = "{slug}/"
ARTICLE_SAVE_AS = "{slug}/index.html"
DIRECT_TEMPLATES = ("index", "archives", "theforge")
ARCHIVES_SAVE_AS = "writings/index.html"
THEFORGE_SAVE_AS = "the-forge/index.html"
TAG_SAVE_AS = ""
CATEGORY_SAVE_AS = ""
AUTHOR_SAVE_AS = ""
TAGS_SAVE_AS = ""
CATEGORIES_SAVE_AS = ""
AUTHORS_SAVE_AS = ""
MARKDOWN = {
"extension_configs": {
"markdown.extensions.codehilite": {"css_class": "highlight"},
"markdown.extensions.extra": {},
"markdown.extensions.meta": {},
},
"output_format": "html5",
}