-
Notifications
You must be signed in to change notification settings - Fork 11
/
pelicanconf.py
98 lines (79 loc) · 2.5 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
# Site metadata
AUTHOR = "PyCon Taiwan Organizers"
SITENAME = "PyCon Taiwan Blog"
SITETITLE = "PyCon Taiwan"
SITEDESCRIPTION = "PyCon Taiwan official blog. Catch up the latest announcement here!"
# empty for local development
SITEURL = ""
SITELOGO = SITEURL + "/images/profile.jpg"
FAVICON = SITEURL + "/images/favicon.ico"
# blog config
PATH = "content"
STATIC_PATHS = ["images", "extra"]
PLUGIN_PATHS = ["plugins"]
DEFAULT_PAGINATION = 10
TIMEZONE = "Asia/Taipei"
DEFAULT_LANG = "zh-TW"
MAIN_MENU = True
MENUITEMS = (
("Archives", "/archives.html"),
("Categories", "/categories.html"),
("Tags", "/tags.html"),
)
# Blogroll
LINKS = (
("Official Website", "http://tw.pycon.org"),
("Code of Conduct", "/2024-03-07-code-of-conduct.html"),
)
# Social widget
SOCIAL = (
("facebook", "https://www.facebook.com/pycontw"),
("instagram", "https://www.instagram.com/pycon.tw/"),
("twitter", "https://twitter.com/#!/PyConTW"),
("linkedin", "https://www.linkedin.com/company/pycontw/"),
("flickr", "https://www.flickr.com/photos/pycon_tw/albums/"),
("github", "https://github.com/pycontw"),
("youtube", "https://www.youtube.com/c/PyConTaiwanVideo"),
("itunes-note", "https://podcasts.apple.com/tw/podcast/pycast/id1559843325"),
("spotify", "https://open.spotify.com/show/63C4CNtJywIKizNFHRrIGv"),
)
# 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
# Markdown extension
MARKDOWN = {
"extension_configs": {
"markdown.extensions.extra": {},
"markdown.extensions.codehilite": {"css_class": "highlight"},
"markdown.extensions.nl2br": {},
"markdown.extensions.toc": {"toc_depth": "1-3"},
},
"output_format": "html5",
}
# Theme Setting
THEME = "theme/Flex"
PLUGINS = ["i18n_subsites"]
PYGMENTS_STYLE = "default"
THEME_TEMPLATES_OVERRIDES = ["theme/Flex-extend/templates"]
THEME_STATIC_PATHS = ["../Flex-extend/static", "static"]
# JINJA_ENVIRONMENT = {"extensions": ["jinja2.ext.i18n"]}
# BROWSER_COLOR = "1C1C38"
# License
CC_LICENSE = {
"name": "Creative Commons Attribution-ShareAlike",
"version": "4.0",
"slug": "by-sa",
}
COPYRIGHT_NAME = "PyCon Taiwan"
COPYRIGHT_YEAR = 2023
# Uncomment following line if you want document-relative URLs when developing
# RELATIVE_URLS = True
# Plugins
# pelican-seo settings
SEO_REPORT = True
SEO_ENHANCER = True
SEO_ENHANCER_OPEN_GRAPH = True
SEO_ENHANCER_TWITTER_CARDS = True