-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpelicanconf.py
62 lines (53 loc) · 1.58 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
# Base settings file: https://docs.getpelican.com/en/latest/settings.html
from markdown_extensions import MathJaxExtension, PriceContextExtension
# Basic settings
PAGE_PATHS = ["pages"]
ARTICLE_PATHS = ["blog"]
PATH = "content"
PLUGIN_PATHS = ["plugins"]
PLUGINS = ["colorize"]
SITENAME = "warr.in"
SITEURL = ""
STATIC_PATHS = ["favicon.ico", "pygment-lovelace.css", "images", "uploads"]
MARKDOWN = {
"extensions": [
"markdown.extensions.codehilite", # Syntax highlighting
"markdown.extensions.extra",
"markdown.extensions.meta",
"pymdownx.tilde",
MathJaxExtension(),
PriceContextExtension(),
],
"extension_configs": {
"markdown.extensions.codehilite": {"css_class": "highlight"},
},
}
# URL settings
ARTICLE_URL = "blog/{path_no_ext}/"
ARTICLE_SAVE_AS = "blog/{path_no_ext}/index.html"
ARCHIVES_SAVE_AS = "blog/index.html"
CATEGORY_URL = ""
CATEGORY_SAVE_AS = ""
TAG_SAVE_AS = ""
TAGS_SAVE_AS = ""
# Time and Date settings
TIMEZONE = "America/Los_Angeles"
# Template pages
DIRECT_TEMPLATES = ["archives"]
# Metadata settings
# Regex to turn full path into filename without extension
# The ?P<path_no_ext> is a Python group name, so we can extract it with .group("path_no_ext")
PATH_METADATA = r".*/(?P<path_no_ext>.*)\..*"
# Feed settings
# 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
# Pagination settings
DEFAULT_PAGINATION = 10
# Translations settings
DEFAULT_LANG = "en"
# Themes
THEME = "./theme"