-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpelicanconf.py
83 lines (73 loc) · 2.17 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
AUTHOR = "Frederik Elwert"
SITENAME = "Pelican Collection Demo"
SITEURL = ""
THEME = "pelican-collection-theme"
PATH = "content"
TIMEZONE = "Europe/Berlin"
DEFAULT_LANG = "en"
# Collection Builder settings
COLLECTION_DATA__FILE = "collection.csv"
COLLECTION_ITEM_META = [
{"label": "Label", "value": "label"},
{"label": "Artist", "value": "artist"},
{"label": "Type", "value": "object_type"},
{"label": "Location", "value": "location"},
{"label": "Current Location", "value": "current_location"},
{"label": "Date", "value": "_date"},
{"label": "Source", "value": "source", "type": "link"},
]
COLLECTION_CATEGORY = "Collection"
HOME_CATEGORY = "Blog"
HOME_MAX_ENTRIES = 3
HOME_HERO_ITEM = "obj2"
# Image process settings
IMAGE_PROCESS = {
"display": {
"type": "responsive-image",
"srcset": [
("1x", ["scale_in 1344 550 False"]),
("2x", ["scale_in 2688 1100 False"]),
("4x", ["scale_in 5376 2200 False"]),
],
"default": "1x",
},
"hero": {
"type": "responsive-image",
"srcset": [
("1x", ["scale_out 1344 550 False"]),
("2x", ["scale_out 2688 1100 False"]),
("4x", ["scale_out 5376 2200 False"]),
],
"default": "1x",
},
"thumb": {
"type": "responsive-image",
"srcset": [
("1x", ["scale_out 376 376 False"]),
("2x", ["scale_out 752 752 False"]),
("4x", ["scale_out 1504 1504 False"]),
],
"default": "1x",
},
}
# 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
# Blogroll
LINKS = (
("Pelican", "https://getpelican.com/"),
("Python.org", "https://www.python.org/"),
("Jinja2", "https://palletsprojects.com/p/jinja/"),
("You can modify those links in your config file", "#"),
)
# Social widget
SOCIAL = (
("You can add links in your config file", "#"),
("Another social link", "#"),
)
DEFAULT_PAGINATION = False
# Uncomment following line if you want document-relative URLs when developing
# RELATIVE_URLS = True