-
Notifications
You must be signed in to change notification settings - Fork 2
/
pelicanconf.py
114 lines (83 loc) · 2.49 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
#!/usr/bin/env python3
import datetime
import locale
import logging
import pelican
from pelican.plugins import jinja2content
from pelican.utils import DateFormatter
logging.getLogger('livereload').propagate = False
logging.getLogger('tornado').propagate = False
PELICAN_VERSION = pelican.__version__
PORT = 8000
BIND = "127.0.0.1"
AUTHOR = "Maxime"
SITENAME = "Maxime Le Conte des Floris"
SITEURL = f"http://{BIND}:{PORT}"
DESCRIPTION = "Bienvenue sur la page personnelle de Maxime Le Conte des Floris. Le jour, il est ingénieur logiciel chez OVHcloud. La nuit, c'est un photographe en herbe et un mordu de cinéma et d'escalade en bloc."
PATH = "content"
OUTPUT_PATH = "output/"
TIMEZONE = "Europe/Paris"
locale.setlocale(locale.LC_ALL, "fr_FR.UTF-8")
LOCALE = ["fr_FR.UTF-8"]
DEFAULT_LANG = "fr"
THEME = "theme"
THEME_STATIC_DIR = "theme"
AUTHOR_SAVE_AS = False
AUTHORS_SAVE_AS = False
TAG_SAVE_AS = False
TAGS_SAVE_AS = False
CATEGORY_SAVE_AS = False
CATEGORIES_SAVE_AS = False
ARCHIVES_SAVE_AS = False
# Feed generation is usually not desired when developing
FEED_RSS = None
FEED_ALL_ATOM = None
CATEGORY_FEED_ATOM = None
TRANSLATION_FEED_ATOM = None
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None
LOG_FILTER = [
(logging.WARN, "TAG_SAVE_AS is set to False"),
(logging.WARN, "CATEGORY_SAVE_AS is set to False"),
(logging.WARN, "AUTHOR_SAVE_AS is set to False"),
]
DEFAULT_PAGINATION = 20
RELATIVE_URLS = True
ARTICLE_SAVE_AS = "{slug}/index.html"
ARTICLE_URL = "{slug}"
PAGE_SAVE_AS = "{slug}/index.html"
PAGE_URL = "{slug}"
INDEX_SAVE_AS = "index.html"
STATIC_PATHS = ["extra"]
EXTRA_PATH_METADATA = {
"extra/": {"path": "."},
}
IGNORE_FILES = [
"theme/static/images/leaves.svg",
"theme/static/images/code-websites.svg",
"theme/static/images/rss.svg",
]
MARKDOWN = {
"extension_configs": {
"markdown.extensions.codehilite": {"css_class": "highlight"},
"markdown.extensions.extra": {},
"markdown.extensions.meta": {},
},
"extensions": [],
"output_format": "html5",
}
BUILD_DATE = datetime.datetime.now()
JINJA_FILTERS = {
"strftime": DateFormatter(),
}
JINJA_GLOBALS = {"BUILD_DATE": BUILD_DATE}
PLUGIN_PATHS = ["plugins"]
PLUGINS = ["asset_reving", "strike", "styled_rss", "typography", jinja2content]
THEME_STATIC_PATHS = ["static"]
CACHE_CONTENT = True
LOAD_CONTENT_CACHE = True
STYLED_RSS_STYLE_LOCATION = "/theme/pretty-feed-v3.xsl"
WEBRING_FEED_URLS = ["https://adactio.com/articles/rss"]
TEMPLATE_PAGES = {
"cv.html": "cv/index.html"
}