-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpelicanconf.py
143 lines (120 loc) Β· 3.64 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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
THEME="theme"
AUTHOR = 'Jason McGillivray'
SITENAME = "Dev Oops"
SITEURL = 'https://mcgillij.dev'
SITETITLE = "Dev Oops - All things Arch, Debian and Python. Also home to Atiya's Quest"
READERS = {'js': None}
PLUGIN_PATHS = ['pelican-plugins']
PLUGINS = [
'pelican-cover-image',
'readtime',
'pelican_youtube',
'extract_toc',
'better_figures_and_images',
'sitemap',
'better_tables',
# 'css-html-js-minify',
'tag_cloud',
# 'optimize_images', # mega slow single threaded or something
'image_process',
'photos'
]
# tag tag_cloud configuration
TAG_CLOUD_MAX_ITEMS = 25
# photos
PHOTO_LIBRARY = '~/mcgillij.dev.photos'
PHOTO_INLINE_GALLERY_ENABLED = True
PHOTO_WATERMARK = True
PHOTO_WATERMARK_TEXT = 'mcgillij.dev'
IMAGE_PROCESS = {
"crisp": {
"type": "responsive-image",
"srcset": [
("1x", ["scale_in 800 600 True"]),
("2x", ["scale_in 1600 1200 True"]),
("4x", ["scale_in 3200 2400 True"]),
],
"default": "1x",
},
"large-photo": {
"type": "responsive-image",
"sizes": (
"(min-width: 1200px) 800px, "
"(min-width: 992px) 650px, "
"(min-width: 768px) 718px, "
"100vw"
),
"srcset": [
("600w", ["scale_in 600 450 True"]),
("800w", ["scale_in 800 600 True"]),
("1600w", ["scale_in 1600 1200 True"]),
],
"default": "800w",
},
}
#"exclude": ["tag/", "category/"],
SITEMAP = {
"format": "xml",
"priorities": {
"articles": 0.5,
"indexes": 0.5,
"pages": 0.5
},
"changefreqs": {
"articles": "monthly",
"indexes": "daily",
"pages": "monthly"
}
}
RESPONSIVE_IMAGES = True
FIGURE_NUMBERS = True
GOOGLE_ANALYTICS = "UA-31674674-2"
STATIC_PATHS = ['images', 'extras', 'icons']
EXTRA_PATH_METADATA = {
'extras/favicon.ico': {'path': 'favicon.ico'},
'extras/youtube.css': {'path': 'youtube.css'},
'extras/robots.txt': {'path': 'robots.txt'},
'extras/error.html': {'path': 'error.html'},
}
ARTICLE_EXCLUDES = ['extras']
COVER_IMAGES_PATH = 'images'
DEFAULT_COVER_IMAGE = "dingle.jpg"
TYPOGRIFY = True
PATH = "content"
TIMEZONE = 'America/Halifax'
DEFAULT_LANG = 'en'
OG_LOCALE = "en_US.UTF-8"
LOCALE = "en_US.UTF-8"
# 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
FEED_MAX_ITEMS = 15
FEED_ALL_ATOM = 'feeds/all.atom.xml'
CATEGORY_FEED_ATOM = 'feeds/{slug}.atom.xml'
# Blogroll
LINKS = (('Kernel', 'https://kernel.org'),
('Python', 'https://www.python.org'),
('Level1techs', 'https://forum.level1techs.com'),
('Arch Wiki', 'https://wiki.archlinux.org'),
('Debian', 'https://debian.org'),
)
# Social widget
SOCIAL = (
('π github', 'https://github.com/mcgillij'),
('βοΈ gemini capsule', 'gemini://gemini.mcgillij.dev'),
('π @mcgillij', 'https://fosstodon.org/@mcgillij'),
('π¦ @mcgillij.dev', 'https://bsky.app/profile/mcgillij.dev'),
('π keyoxide', 'https://keyoxide.org/hkp/[email protected]'),
('π owncast', 'https://live.mcgillij.dev'),
('π CV/Resume', 'https://github.com/mcgillij/resume/blob/master/j_resume.pdf'),
('πΆ Atiyas Quest', 'https://atiyasquest.mcgillij.dev'),
('π« Atom/RSS', '/feeds/all.atom.xml'),
)
DEFAULT_PAGINATION = 20
# Uncomment following line if you want document-relative URLs when developing
RELATIVE_URLS = True