-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpelicanconf.py
116 lines (96 loc) · 2.83 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
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from datetime import datetime
from markdown.extensions.codehilite import CodeHiliteExtension
AUTHOR = "Sagar Giri"
# SITEURL = "https://sagargiri.com"
SITENAME = """Sagar's Blog"""
SITETITLE = AUTHOR
SITESUBTITLE = "<pre>$ cd /pub && more beer</pre>"
SITEDESCRIPTION = "programming, python, CS, AWS, Django"
BROWSER_COLOR = "#333333"
PATH = "content"
TIMEZONE = "Asia/Tokyo"
DEFAULT_LANG = "en"
OG_LOCALE = "en_US"
LOCALE = "en_US"
DATE_FORMATS = {
"en": "%B %d, %Y",
}
USE_FOLDER_AS_CATEGORY = False
COPYRIGHT_YEAR = datetime.now().year
DEFAULT_PAGINATION = 5
# Theme Settings
SITELOGO = "/images/title.png"
FAVICON = "/images/favicon.png"
THEME = "themes/Flex"
PYGMENTS_STYLE = "default"
# Feed generation is usually not desired when developing
# FEED_DOMAIN = SITEURL
FEED_ALL_ATOM = "feeds/all.atom.xml"
CATEGORY_FEED_ATOM = "feeds/{slug}.atom.xml"
TRANSLATION_FEED_ATOM = None
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None
# Main Menu
MAIN_MENU = True
MENUITEMS = (
("Archives", "/archives"),
("Categories", "/categories"),
("Tags", "/tags"),
)
# Blogroll
LINKS = (("Project", "https://girisagar46.github.io/FYPFruitClassifier/"),)
# Social widget
SOCIAL = (
("linkedin", "https://linkedin.com/in/girisagar46"),
("github", "https://github.com/girisagar46"),
("stack-overflow", "https://stackoverflow.com/story/girisagar46.github.io"),
("mastodon", "https://fosstodon.org/@girisagar46"),
)
# Plugins
# See: http://docs.getpelican.com/en/latest/plugins.html
PLUGINS = ["pelican.plugins.sitemap"]
# Sitemap Settings
SITEMAP = {
"format": "xml",
"priorities": {
"articles": 0.6,
"indexes": 0.6,
"pages": 0.5,
},
"changefreqs": {
"articles": "monthly",
"indexes": "daily",
"pages": "monthly",
},
}
STATIC_PATHS = ["images", "extras/CNAME", "extras/robots.txt", "extras/keybase.txt"]
EXTRA_PATH_METADATA = {
"extras/custom.css": {"path": "static/custom.css"},
"extras/CNAME": {"path": "CNAME"},
"extras/robots.txt": {"path": "robots.txt"},
"extras/keybase.txt": {"path": "keybase.txt"},
}
CUSTOM_CSS = "static/custom.css"
HOME_HIDE_TAGS = True
USE_LESS = False
FEED_USE_SUMMARY = True
GOOGLE_ANALYTICS = "UA-73000395-1"
GOOGLE_TAG_MANAGER = "GTM-5K6D7ZG"
MICROSOFT_CLARITY = "7cfbr3w8ss"
# Formatting for URLS
ARTICLE_URL = "{slug}"
PAGE_URL = "pages/{slug}"
CATEGORY_URL = "category/{slug}"
TAG_URL = "tag/{slug}"
AUTHOR_SAVE_AS = "author/{slug}.html"
AUTHORS_SAVE_AS = False
FLAIR = True
FLAIR_URL = "https://stackexchange.com/users/5684581/sgiri"
FLAIR_IMAGE_URL = "https://stackexchange.com/users/flair/5684581.png"
FLAIR_USER_NAME = "sgiri"
READERS = {"html": None}
# DEFAULT_CONFIG["MD_EXTENSIONS"] =
# MD_EXTENSIONS = []
# MARKDOWN = [CodeHiliteExtension(css_class="highlight", linenums=True), "extra"]